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
MessageException
public MessageException(String description,
Message message,
int failureCode)
- creates a new
MessageException
- Parameters:
description
- detail message containing the reason for the failuremessage
- message that caused the failurefailureCode
- code of the failure (see QualityOfService
)
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