Package backtraceio.library.models.types
Class HttpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- backtraceio.library.models.types.HttpException
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpException extends java.lang.ExceptionException which represents a HTTP fault- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpException(java.lang.Integer httpStatus)Create new instance with HTTP statusHttpException(java.lang.Integer httpStatus, java.lang.String message)Create new instance with HTTP status and without messageHttpException(java.lang.String message)Create new instance with message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpStatus()Return HTTP status code
-
-
-
Constructor Detail
-
HttpException
public HttpException(java.lang.String message)
Create new instance with message- Parameters:
message- received exception message
-
HttpException
public HttpException(java.lang.Integer httpStatus)
Create new instance with HTTP status- Parameters:
httpStatus- received HTTP status code
-
HttpException
public HttpException(java.lang.Integer httpStatus, java.lang.String message)Create new instance with HTTP status and without message- Parameters:
httpStatus- received HTTP status codemessage- received exception message
-
-