Class RestException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RequestException, ResourceConverterException

public class RestException extends RuntimeException
The RestException is the base exception used throughout the API. This exception should only be thrown if there is no more specific exception defined in the API for the cause otherwise a more specific exception must be used.

The RestException is a RuntimeException because it is not intended to be caught by client code.

See Also:
  • Constructor Details

    • RestException

      public RestException(String message)
      Creates a RestException
      Parameters:
      message - the detail message
    • RestException

      public RestException(Throwable cause)
      Creates a RestException
      Parameters:
      cause - the cause
    • RestException

      public RestException(String message, Throwable cause)
      Creates a RestException
      Parameters:
      message - the detail message
      cause - the cause