Package com.ocient.rest.exceptionMappers
Class ExceptionWithStatus
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ocient.rest.exceptionMappers.ExceptionWithStatus
- All Implemented Interfaces:
WebStatusMapable,Serializable
Base class for exceptions that have an associated HTTP status
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExceptionWithStatus(String message) Construct a new exception with the given messageExceptionWithStatus(String message, Throwable cause) Construct a new exception with the given message and cause -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ocient.rest.exceptionMappers.WebStatusMapable
getWebStatus
-
Constructor Details
-
ExceptionWithStatus
Construct a new exception with the given message- Parameters:
message- The message of the exception
-
ExceptionWithStatus
Construct a new exception with the given message and cause- Parameters:
message- The message of the exceptioncause- The cause of the exception
-