Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.mina.http.HttpException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpException(int statusCode) Creates a new HttpException instanceHttpException(int statusCode, String message) Creates a new HttpException instanceHttpException(HttpStatus statusCode) Creates a new HttpException instanceHttpException(HttpStatus statusCode, String message) Creates a new HttpException instance -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
statusCode
private final int statusCode
-
-
Constructor Details
-
HttpException
public HttpException(int statusCode) Creates a new HttpException instance- Parameters:
statusCode- The associated status code
-
HttpException
Creates a new HttpException instance- Parameters:
statusCode- The associated status code
-
HttpException
Creates a new HttpException instance- Parameters:
statusCode- The associated status codemessage- The error message
-
HttpException
Creates a new HttpException instance- Parameters:
statusCode- The associated status codemessage- The error message
-
-
Method Details
-
getStatusCode
public int getStatusCode()- Returns:
- The statusCode
-