Class RestMessageParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.communication.exception.CommunicationEngineException
com.aquima.interactions.communication.exception.RestMessageParseException
- All Implemented Interfaces:
Serializable
This exception is used when a rest message could not be parsed.
- Since:
- 9.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRestMessageParseException
(String message, IRestMessage restMessage) Constructs the exception with the error message and the invalid soap message.RestMessageParseException
(String message, IRestMessage restMessage, Throwable cause) Constructor with both a message and an exception explaining the cause of the error. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the rest message that could not be parsed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestMessageParseException
Constructs the exception with the error message and the invalid soap message.- Parameters:
message
- The error message.restMessage
- The rest message that could not be parsed, may not be null.
-
RestMessageParseException
Constructor with both a message and an exception explaining the cause of the error.- Parameters:
message
- The message explaining the error that occurred.restMessage
- The rest message that could not be parsed, may not be null.cause
- The original cause of the error.
-
-
Method Details
-
getRestMessage
This method returns the rest message that could not be parsed.- Returns:
- The rest message, never null.
-