Class SignServiceIntegrationErrorBody
java.lang.Object
se.idsec.signservice.integration.core.error.SignServiceIntegrationErrorBody
- All Implemented Interfaces:
Serializable
The
SignServiceIntegrationErrorBody
is a representation of a SignService Integration error message when the
service is implemented as a REST service.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For DSS errors.static class
Representation of validation errors. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SignServiceIntegrationErrorBody
(int status, long timestamp, String errorCode, SignServiceIntegrationErrorBody.ValidationError validationError, SignServiceIntegrationErrorBody.DssError dssError, String message, String path, String exceptionClass) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the DSS error details.Gets the error code.Gets the name of the exception class that was thrown for this error.Gets the error message.getPath()
Gets the requested path.int
Gets the HTTP status code.long
Gets the timestamp as milliseconds since epoch.Gets the validation error details.void
Assigns the DSS error details.void
setErrorCode
(String errorCode) Assigns the error code.void
setExceptionClass
(String exceptionClass) Assigns the name of the exception class that was thrown for this error.void
setMessage
(String message) Assigns the error message.void
Assigns the requested path.void
setStatus
(int status) Assigns the HTTP status code.void
setTimestamp
(long timestamp) Assigns the timestamp as milliseconds since epoch.void
setValidationError
(SignServiceIntegrationErrorBody.ValidationError validationError) Assigns the validation error details.
-
Constructor Details
-
SignServiceIntegrationErrorBody
public SignServiceIntegrationErrorBody()Default constructor. -
SignServiceIntegrationErrorBody
public SignServiceIntegrationErrorBody(int status, long timestamp, String errorCode, SignServiceIntegrationErrorBody.ValidationError validationError, SignServiceIntegrationErrorBody.DssError dssError, String message, String path, String exceptionClass) All-args constructor.- Parameters:
status
- the HTTP status codetimestamp
- the timestamp as milliseconds since epocherrorCode
- the error codevalidationError
- validation error detailsdssError
- the DSS error detailsmessage
- the error messagepath
- the requested pathexceptionClass
- the name of the exception class that was thrown for this error
-
-
Method Details
-
getStatus
public int getStatus()Gets the HTTP status code.- Returns:
- the HTTP status code
-
setStatus
public void setStatus(int status) Assigns the HTTP status code.- Parameters:
status
- the HTTP status code
-
getTimestamp
public long getTimestamp()Gets the timestamp as milliseconds since epoch.- Returns:
- the timestamp for the error
-
setTimestamp
public void setTimestamp(long timestamp) Assigns the timestamp as milliseconds since epoch.- Parameters:
timestamp
- the timestamp for the error
-
getErrorCode
Gets the error code.- Returns:
- the error code
-
setErrorCode
Assigns the error code.- Parameters:
errorCode
- the error code
-
getValidationError
Gets the validation error details.- Returns:
- the validation error information
-
setValidationError
Assigns the validation error details. Only set if the error was due to an input validation failure.- Parameters:
validationError
- the validation error information
-
getDssError
Gets the DSS error details.- Returns:
- DSS error details
-
setDssError
Assigns the DSS error details.- Parameters:
dssError
- DSS error details
-
getMessage
Gets the error message.- Returns:
- the error message
-
setMessage
Assigns the error message.- Parameters:
message
- the error message
-
getPath
Gets the requested path.- Returns:
- the requested path
-
setPath
Assigns the requested path.- Parameters:
path
- the requested path
-
getExceptionClass
Gets the name of the exception class that was thrown for this error.- Returns:
- exception class
-
setExceptionClass
Assigns the name of the exception class that was thrown for this error.- Parameters:
exceptionClass
- exception class
-