de.root1.simon.codec.messages
Class MsgError

java.lang.Object
  extended by de.root1.simon.codec.messages.AbstractMessage
      extended by de.root1.simon.codec.messages.MsgError
All Implemented Interfaces:
java.io.Serializable

public class MsgError
extends AbstractMessage

ERROR message. By default, the error is declared as "read" error, means, error while decoding.

Since:
1.1.0
Author:
ACHR
See Also:
Serialized Form

Constructor Summary
MsgError()
           
 
Method Summary
 java.lang.String getErrorMessage()
          Get the message assiciated with the error
 int getInitSequenceId()
           
 java.lang.String getRemoteObjectName()
           
 java.lang.Throwable getThrowable()
          Returns the associated throwable/exception.
 boolean isDecodeError()
          Returns true, if error occured while decoding a message Returns false, if error occured while encoding a message
 void setDecodeError()
           
 void setEncodeError()
           
 void setErrorMessage(java.lang.String errorMessage)
          Sets the error message of MsgError
 void setInitSequenceId(int initSequenceId)
           
 void setRemoteObjectName(java.lang.String remoteObjectName)
           
 void setThrowable(java.lang.Throwable throwable)
          Sets the occured exception
 java.lang.String toString()
           
 
Methods inherited from class de.root1.simon.codec.messages.AbstractMessage
getErrorMsg, getMsgType, getSequence, hasError, setErrorMsg, setSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsgError

public MsgError()
Method Detail

getRemoteObjectName

public java.lang.String getRemoteObjectName()
Returns:
the remoteObjectName

setRemoteObjectName

public void setRemoteObjectName(java.lang.String remoteObjectName)
Parameters:
remoteObjectName - the remoteObjectName to set

getErrorMessage

public java.lang.String getErrorMessage()
Get the message assiciated with the error

Returns:
the errorMessage

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Sets the error message of MsgError

Parameters:
errorMessage - the errorMessage to set

getThrowable

public java.lang.Throwable getThrowable()
Returns the associated throwable/exception. May be null.

Returns:
the throwable

setThrowable

public void setThrowable(java.lang.Throwable throwable)
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

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.