Class RestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
biz.devstack.springframework.boot.exception.RestException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRestException(org.springframework.http.HttpStatus status) RestException(org.springframework.http.HttpStatus status, String message) -
Method Summary
Modifier and TypeMethodDescriptionstatic RestExceptionstatic RestExceptionbadRequest(String message) static RestExceptionstatic RestExceptionstatic RestExceptionstatic RestExceptioninternalServerError(String message) static RestExceptionnotFound()static RestExceptionstatic RestExceptionstatic RestExceptionunauthorized(String message) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestException
public RestException() -
RestException
public RestException(org.springframework.http.HttpStatus status) -
RestException
-
-
Method Details
-
badRequest
-
badRequest
-
unauthorized
-
unauthorized
-
forbidden
-
forbidden
-
notFound
-
notFound
-
internalServerError
-
internalServerError
-