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
public class RestMessageParseException extends CommunicationEngineException
This exception is used when a rest message could not be parsed.- Since:
- 9.0
- Author:
- Jon van Leuven
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestMessageParseException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRestMessage
getRestMessage()
This 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 Detail
-
RestMessageParseException
public RestMessageParseException(String message, IRestMessage restMessage)
Constructs the exception with the error message and the invalid soap message.- Parameters:
message
- The error message.message
- The rest message that could not be parsed, may not be null.soapMessage
- The invalid soap message.
-
RestMessageParseException
public RestMessageParseException(String message, IRestMessage restMessage, Throwable cause)
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 Detail
-
getRestMessage
public IRestMessage getRestMessage()
This method returns the rest message that could not be parsed.- Returns:
- The rest message, never null.
-
-