Class ExceptionWithStatus

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ocient.rest.exceptionMappers.ExceptionWithStatus
All Implemented Interfaces:
WebStatusMapable, Serializable

public abstract class ExceptionWithStatus extends Exception implements WebStatusMapable
Base class for exceptions that have an associated HTTP status
See Also:
  • Constructor Details

    • ExceptionWithStatus

      public ExceptionWithStatus(String message)
      Construct a new exception with the given message
      Parameters:
      message - The message of the exception
    • ExceptionWithStatus

      public ExceptionWithStatus(String message, Throwable cause)
      Construct a new exception with the given message and cause
      Parameters:
      message - The message of the exception
      cause - The cause of the exception