Class HasFaultResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.serviceconnector.scmp.HasFaultResponseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoFreeServerException, SCMPCommandException, SCMPCommunicationException, SCMPFrameDecoderException, SCMPValidatorException

public abstract class HasFaultResponseException extends Exception
The Class HasFaultResponseException. To inherit for exception classes which save specific information for the response. Used to save data about occurred errors and writing the response on a different level of software architecture.
Author:
JTraber
See Also:
  • Field Details

  • Constructor Details

    • HasFaultResponseException

      public HasFaultResponseException(SCMPError error)
      Instantiates a new checks for fault response exception.
      Parameters:
      error - the error
    • HasFaultResponseException

      public HasFaultResponseException(SCMPError error, String additionalInfo)
      Instantiates a new checks for fault response exception.
      Parameters:
      error - the error
      additionalInfo - the additional info
  • Method Details

    • setAttribute

      public void setAttribute(SCMPHeaderAttributeKey key, String value)
      Sets the attribute.
      Parameters:
      key - the key
      value - the value
    • setFaultResponse

      public void setFaultResponse(IResponse response)
      Sets the fault response.
      Parameters:
      response - the new fault response
    • setMessageType

      public void setMessageType(SCMPMsgType messageType)
      Sets the message type.
      Parameters:
      messageType - the new message type
    • setMessageType

      public void setMessageType(String messageTypeValue)
      Sets the message type.
      Parameters:
      messageTypeValue - the new message type
    • setSessionIdAndServiceName

      public void setSessionIdAndServiceName(IRequest request)
      Tries setting the session id and service name in fault message.
      Parameters:
      request - the new session id and service name
    • toString

      public String toString()
      Overrides:
      toString in class Throwable