Class RestException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RestException
    extends javax.ws.rs.WebApplicationException
    Exception used to provide better error messages to clients of the REST API.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RestException​(int code, java.lang.String message)  
      RestException​(java.lang.Throwable t)  
      RestException​(javax.ws.rs.core.Response.Status status, java.lang.String message)  
    • Method Summary

      • Methods inherited from class javax.ws.rs.WebApplicationException

        getResponse
      • 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

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

      • RestException

        public RestException​(javax.ws.rs.core.Response.Status status,
                             java.lang.String message)
      • RestException

        public RestException​(int code,
                             java.lang.String message)
      • RestException

        public RestException​(java.lang.Throwable t)