Package ee.datel.dogis.exception
Class HttpStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
ee.datel.dogis.exception.HttpStatusException
- All Implemented Interfaces:
Serializable
HTTP Status exception class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpStatusException(org.springframework.http.HttpStatusCode status, String message) Constructor.HttpStatusException(org.springframework.http.HttpStatusCode status, String message, Throwable cause) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpStatusCodeObject status getter.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpStatusException
Constructor.- Parameters:
status- http statusmessage- error message
-
HttpStatusException
public HttpStatusException(org.springframework.http.HttpStatusCode status, String message, Throwable cause) Constructor.- Parameters:
status- http statusmessage- error messagecause- error
-
-
Method Details
-
getStatus
public org.springframework.http.HttpStatusCode getStatus()Object status getter.- Returns:
- http status
-