Package com.technia.tif.enovia.jaxrs
Class RESTException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.technia.tif.enovia.jaxrs.RESTException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRESTException(int status, String message, String contentType) Constructs an instance of RESTException with the specified status code, message and content type.RESTException(String msg) Constructs an instance of RESTException with the specified plain text message.RESTException(String msg, Throwable cause) Constructs an instance of RESTException with the specified plain text message.RESTException(Throwable cause) Constructs an instance of RESTException with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the content type.Returns the HTTP status code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RESTException
Constructs an instance of RESTException with the specified plain text message.- Parameters:
msg- a plain text message
-
RESTException
Constructs an instance of RESTException with the specified plain text message.- Parameters:
msg- a plain text messagecause- an exception indicating the cause of error
-
RESTException
Constructs an instance of RESTException with the specified cause.- Parameters:
cause- an exception indicating the cause of error
-
RESTException
Constructs an instance of RESTException with the specified status code, message and content type.- Parameters:
status- an HTTP status codemessage- an error messagecontentType- a content type.
-
-
Method Details
-
getStatus
Returns the HTTP status code.- Returns:
- a HTTP status code
-
getMessage
- Overrides:
getMessagein classThrowable
-
getContentType
Returns the content type.- Returns:
- a content type
-