com.ls.lars.communication
Class MessageException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ls.BaseException
                    |
                    +--com.ls.lars.LarsException
                          |
                          +--com.ls.lars.communication.MessageException
All Implemented Interfaces:
Serializable

public class MessageException
extends LarsException

Message exception handling class

Version:
$Revision: 1.3 $
Author:
Last modified by $Author: ODrugan $
See Also:
Serialized Form

Fields inherited from class com.ls.BaseException
innerThrowable
 
Constructor Summary
MessageException(String description, Message message, int failureCode)
          creates a new MessageException
 
Method Summary
 String getDescription()
          returns the short description of this exception
 int getFailureCode()
          returns the failure code
 Message getLarsMessage()
          returns the com.ls.lars.communicatio.Message instance, that caused this excpetion
 String getMessage()
          returns the detail description
 
Methods inherited from class com.ls.BaseException
getNestedThrowable, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageException

public MessageException(String description,
                        Message message,
                        int failureCode)
creates a new MessageException
Parameters:
description - detail message containing the reason for the failure
message - message that caused the failure
failureCode - code of the failure (see QualityOfService)
Method Detail

getFailureCode

public int getFailureCode()
returns the failure code
Returns:
the value of the failure code

getLarsMessage

public Message getLarsMessage()
returns the com.ls.lars.communicatio.Message instance, that caused this excpetion
Returns:
the com.ls.lars.communicatio.Message instance, that caused this excpetion

getDescription

public String getDescription()
returns the short description of this exception
Returns:
the short description of this exception

getMessage

public String getMessage()
returns the detail description
Overrides:
getMessage in class BaseException
Returns:
well formatted detail description