Package org.bremersee.exception.model
Class RestApiException
- java.lang.Object
-
- org.bremersee.exception.model.RestApiException
-
- All Implemented Interfaces:
Serializable
public class RestApiException extends Object implements Serializable
The serialized exception.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRestApiException(String id, OffsetDateTime timestamp, Integer status, String error, String errorCode, Boolean errorCodeInherited, String message, String exception, String application, String path, Handler handler, List<StackTraceItem> stackTrace, RestApiException cause, Map<String,Object> furtherDetails)Instantiates a new rest api exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>furtherDetails()Further details map.voidfurtherDetails(String name, Object value)Any json setter.BooleangetErrorCodeInherited()Is the error code inherited from the cause.
-
-
-
Constructor Detail
-
RestApiException
protected RestApiException(String id, OffsetDateTime timestamp, Integer status, String error, String errorCode, Boolean errorCodeInherited, String message, String exception, String application, String path, Handler handler, List<StackTraceItem> stackTrace, RestApiException cause, Map<String,Object> furtherDetails)
Instantiates a new rest api exception.- Parameters:
id- the idtimestamp- the timestampstatus- the statuserror- the errorerrorCode- the error codeerrorCodeInherited- the error code inheritedmessage- the messageexception- the class nameapplication- the applicationpath- the pathhandler- the handlerstackTrace- the stack tracecause- the cause
-
-
Method Detail
-
getErrorCodeInherited
public Boolean getErrorCodeInherited()
Is the error code inherited from the cause.- Returns:
- errorCodeInherited error code inherited
-
furtherDetails
public void furtherDetails(String name, Object value)
Any json setter.- Parameters:
name- the namevalue- the value
-
-