Package host.anzo.simon.codec.messages
Class MsgError
java.lang.Object
host.anzo.simon.codec.messages.AbstractMessage
host.anzo.simon.codec.messages.MsgError
- All Implemented Interfaces:
Serializable
ERROR message.
By default, the error is declared as "read" error, means, error while decoding.- Since:
- 1.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the message assiciated with the errorintReturns the associated throwable/exception.booleanReturns true, if error occured while decoding a message Returns false, if error occured while encoding a messagevoidvoidvoidsetErrorMessage(String errorMessage) Sets the error message of MsgErrorvoidsetInitSequenceId(int initSequenceId) voidsetRemoteObjectName(String remoteObjectName) voidsetThrowable(Throwable throwable) Sets the occured exceptiontoString()Methods inherited from class host.anzo.simon.codec.messages.AbstractMessage
getErrorMsg, getMsgType, getSequence, hasError, setErrorMsg, setSequence
-
Constructor Details
-
MsgError
public MsgError()
-
-
Method Details
-
getRemoteObjectName
- Returns:
- the remoteObjectName
-
setRemoteObjectName
- Parameters:
remoteObjectName- the remoteObjectName to set
-
getErrorMessage
Get the message assiciated with the error- Returns:
- the errorMessage
-
setErrorMessage
Sets the error message of MsgError- Parameters:
errorMessage- the errorMessage to set
-
getThrowable
Returns the associated throwable/exception. May be null.- Returns:
- the throwable
-
setThrowable
Sets the occured exception- Parameters:
throwable- the throwable to set
-
getInitSequenceId
public int getInitSequenceId()- Returns:
- the initSequenceId
-
setInitSequenceId
public void setInitSequenceId(int initSequenceId) - Parameters:
initSequenceId- the initSequenceId to set
-
setEncodeError
public void setEncodeError() -
setDecodeError
public void setDecodeError() -
isDecodeError
public boolean isDecodeError()Returns true, if error occured while decoding a message Returns false, if error occured while encoding a message- Returns:
- the isRequestError
-
toString
-