Package org.serviceconnector.scmp
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
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new checks for fault response exception.HasFaultResponseException(SCMPError error, String additionalInfo) Instantiates a new checks for fault response exception. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAttribute(SCMPHeaderAttributeKey key, String value) Sets the attribute.voidsetFaultResponse(IResponse response) Sets the fault response.voidsetMessageType(String messageTypeValue) Sets the message type.voidsetMessageType(SCMPMsgType messageType) Sets the message type.voidsetSessionIdAndServiceName(IRequest request) Tries setting the session id and service name in fault message.toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
fault
The fault message.
-
-
Constructor Details
-
HasFaultResponseException
Instantiates a new checks for fault response exception.- Parameters:
error- the error
-
HasFaultResponseException
Instantiates a new checks for fault response exception.- Parameters:
error- the erroradditionalInfo- the additional info
-
-
Method Details
-
setAttribute
Sets the attribute.- Parameters:
key- the keyvalue- the value
-
setFaultResponse
Sets the fault response.- Parameters:
response- the new fault response
-
setMessageType
Sets the message type.- Parameters:
messageType- the new message type
-
setMessageType
Sets the message type.- Parameters:
messageTypeValue- the new message type
-
setSessionIdAndServiceName
Tries setting the session id and service name in fault message.- Parameters:
request- the new session id and service name
-
toString
-