Class 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:
  • Constructor Details

    • RestMessageParseException

      public RestMessageParseException(String message, IRestMessage restMessage)
      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

      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 Details

    • getRestMessage

      public IRestMessage getRestMessage()
      This method returns the rest message that could not be parsed.
      Returns:
      The rest message, never null.