Class RestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.adorsys.ledgers.um.rest.exception.RestException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotFoundRestException
public abstract class RestException extends RuntimeException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdevMessageprotected org.springframework.http.HttpStatusstatus
-
Constructor Summary
Constructors Modifier Constructor Description protectedRestException(String message)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract StringgetCode()abstract org.springframework.http.HttpStatusgetStatus()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
status
protected org.springframework.http.HttpStatus status
-
devMessage
protected String devMessage
-
-
Constructor Detail
-
RestException
protected RestException(String message)
-
-
Method Detail
-
getCode
public abstract String getCode()
-
getStatus
public abstract org.springframework.http.HttpStatus getStatus()
-
-