Package org.craftercms.engine.exception
Class HttpStatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.craftercms.core.exception.CrafterException
org.craftercms.engine.exception.HttpStatusCodeException
- All Implemented Interfaces:
Serializable,HttpStatusCodeAwareException
- Direct Known Subclasses:
PreviewAccessException
public class HttpStatusCodeException
extends org.craftercms.core.exception.CrafterException
implements HttpStatusCodeAwareException
Exception thrown to cause specific HTTP status code errors
- Author:
- Alfonso Vásquez
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpStatusCodeException(int statusCode) HttpStatusCodeException(int statusCode, String message) HttpStatusCodeException(int statusCode, String message, Throwable cause) HttpStatusCodeException(int statusCode, Throwable cause) HttpStatusCodeException(org.springframework.http.HttpStatus status) HttpStatusCodeException(org.springframework.http.HttpStatus status, String message) HttpStatusCodeException(org.springframework.http.HttpStatus status, String message, Throwable cause) HttpStatusCodeException(org.springframework.http.HttpStatus status, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
HttpStatusCodeException
public HttpStatusCodeException(int statusCode) -
HttpStatusCodeException
-
HttpStatusCodeException
-
HttpStatusCodeException
-
HttpStatusCodeException
public HttpStatusCodeException(org.springframework.http.HttpStatus status) -
HttpStatusCodeException
-
HttpStatusCodeException
-
HttpStatusCodeException
-
-
Method Details
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceHttpStatusCodeAwareException
-
getStatus
public org.springframework.http.HttpStatus getStatus() -
toString
-