Class MsgError

java.lang.Object
host.anzo.simon.codec.messages.AbstractMessage
host.anzo.simon.codec.messages.MsgError
All Implemented Interfaces:
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
See Also:
  • Constructor Details

    • MsgError

      public MsgError()
  • Method Details

    • getRemoteObjectName

      public String getRemoteObjectName()
      Returns:
      the remoteObjectName
    • setRemoteObjectName

      public void setRemoteObjectName(String remoteObjectName)
      Parameters:
      remoteObjectName - the remoteObjectName to set
    • getErrorMessage

      public String getErrorMessage()
      Get the message assiciated with the error
      Returns:
      the errorMessage
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Sets the error message of MsgError
      Parameters:
      errorMessage - the errorMessage to set
    • getThrowable

      public Throwable getThrowable()
      Returns the associated throwable/exception. May be null.
      Returns:
      the throwable
    • setThrowable

      public void setThrowable(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 String toString()
      Overrides:
      toString in class Object