Package org.serviceconnector.scmp
Class SCMPMessageFault
java.lang.Object
org.serviceconnector.scmp.SCMPMessage
org.serviceconnector.scmp.SCMPMessageFault
- All Implemented Interfaces:
Serializable
The Class SCMPMessageFault. Indicates an error and causes the
SCMPHeadlineKey.EXC on the wire protocol.- See Also:
-
Field Summary
Fields inherited from class org.serviceconnector.scmp.SCMPMessage
header, SC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionSCMPMessageFault(SCMPVersion scmpVersion) Instantiates a new SCMP fault.SCMPMessageFault(SCMPVersion scmpVersion, Exception exception, SCMPError error) Instantiates a new SCMP fault.SCMPMessageFault(SCMPVersion scmpVersion, SCMPError error, String additionalInfo) Instantiates a new SCMP fault message. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Gets the cause.booleanisFault()Checks if the message is a fault.booleanisReply()Checks if this message is a reply.voidSets the error code and text.voidSets the error code and text based on scmp error.voidSets the error.voidSets the local date time.toString()Methods inherited from class org.serviceconnector.scmp.SCMPMessage
getBody, getBodyLength, getBodyOffset, getBodyType, getCacheId, getHeader, getHeader, getHeader, getHeaderBoolean, getHeaderFlag, getHeaderInt, getHttpUrlFileQualifier, getMessageSequenceNr, getMessageType, getPartSize, getSCMPVersion, getServiceName, getSessionId, isBodyOffset, isByteArray, isCached, isComposite, isCompressed, isKeepAlive, isLargeMessage, isPart, isPollRequest, isReqCompleteAfterMarshallingPart, isString, removeHeader, removeHeader, setBody, setBody, setCached, setCacheId, setHeader, setHeader, setHeader, setHeader, setHeader, setHeader, setHeader, setHeader, setHeaderCheckNull, setHeaderFlag, setHttpUrlFileQualifier, setIsReply, setIsReqCompleteAfterMarshallingPart, setMessageType, setMessageType, setPartSize, setServiceName, setSessionId
-
Constructor Details
-
SCMPMessageFault
Instantiates a new SCMP fault.- Parameters:
scmpVersion- the SCMP version
-
SCMPMessageFault
Instantiates a new SCMP fault message.- Parameters:
scmpVersion- the SCMP versionerror- the error codeadditionalInfo- the additional info
-
SCMPMessageFault
Instantiates a new SCMP fault.- Parameters:
exception- the exceptionerror- the error
-
-
Method Details
-
getCause
Gets the cause.- Returns:
- the exception
-
setLocalDateTime
public void setLocalDateTime()Sets the local date time. -
isFault
public boolean isFault()Checks if the message is a fault.- Overrides:
isFaultin classSCMPMessage- Returns:
- true, if is fault
-
isReply
public boolean isReply()Checks if this message is a reply.- Overrides:
isReplyin classSCMPMessage- Returns:
- true, if is reply
-
setError
Sets the error code and text.- Parameters:
errorCode- the error codeerrorText- the error text
-
setError
Sets the error.- Parameters:
scmpError- the scmp erroradditionalInfo- the additional info
-
setError
Sets the error code and text based on scmp error.- Parameters:
scmpError- the new error code
-
toString
- Overrides:
toStringin classSCMPMessage
-