Class RestException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    RequestException, ResourceConverterException

    public class RestException
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RestException​(java.lang.String message)
      Creates a RestException
      RestException​(java.lang.String message, java.lang.Throwable cause)
      Creates a RestException
      RestException​(java.lang.Throwable cause)
      Creates a RestException
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RestException

        public RestException​(java.lang.String message)
        Creates a RestException
        Parameters:
        message - the detail message
      • RestException

        public RestException​(java.lang.Throwable cause)
        Creates a RestException
        Parameters:
        cause - the cause
      • RestException

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