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, org.craftercms.core.exception.HttpStatusCodeAwareException
Direct Known Subclasses:
PreviewAccessException

public class HttpStatusCodeException extends org.craftercms.core.exception.CrafterException implements org.craftercms.core.exception.HttpStatusCodeAwareException
Exception thrown to cause specific HTTP status code errors
Author:
Alfonso Vásquez
See Also:
  • Constructor Details

    • HttpStatusCodeException

      public HttpStatusCodeException(int statusCode)
    • HttpStatusCodeException

      public HttpStatusCodeException(int statusCode, String message, Throwable cause)
    • HttpStatusCodeException

      public HttpStatusCodeException(int statusCode, String message)
    • HttpStatusCodeException

      public HttpStatusCodeException(int statusCode, Throwable cause)
    • HttpStatusCodeException

      public HttpStatusCodeException(org.springframework.http.HttpStatus status)
    • HttpStatusCodeException

      public HttpStatusCodeException(org.springframework.http.HttpStatus status, String message, Throwable cause)
    • HttpStatusCodeException

      public HttpStatusCodeException(org.springframework.http.HttpStatus status, String message)
    • HttpStatusCodeException

      public HttpStatusCodeException(org.springframework.http.HttpStatus status, Throwable cause)
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Specified by:
      getStatusCode in interface org.craftercms.core.exception.HttpStatusCodeAwareException
    • getStatus

      public org.springframework.http.HttpStatus getStatus()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable