Class SignServiceIntegrationErrorBody

java.lang.Object
se.idsec.signservice.integration.core.error.SignServiceIntegrationErrorBody
All Implemented Interfaces:
Serializable

public class SignServiceIntegrationErrorBody extends Object implements 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:
  • 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 code
      timestamp - the timestamp as milliseconds since epoch
      errorCode - the error code
      validationError - validation error details
      dssError - the DSS error details
      message - the error message
      path - the requested path
      exceptionClass - 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

      public String getErrorCode()
      Gets the error code.
      Returns:
      the error code
    • setErrorCode

      public void setErrorCode(String errorCode)
      Assigns the error code.
      Parameters:
      errorCode - the error code
    • getValidationError

      Gets the validation error details.
      Returns:
      the validation error information
    • setValidationError

      public void setValidationError(SignServiceIntegrationErrorBody.ValidationError validationError)
      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

      public void setDssError(SignServiceIntegrationErrorBody.DssError dssError)
      Assigns the DSS error details.
      Parameters:
      dssError - DSS error details
    • getMessage

      public String getMessage()
      Gets the error message.
      Returns:
      the error message
    • setMessage

      public void setMessage(String message)
      Assigns the error message.
      Parameters:
      message - the error message
    • getPath

      public String getPath()
      Gets the requested path.
      Returns:
      the requested path
    • setPath

      public void setPath(String path)
      Assigns the requested path.
      Parameters:
      path - the requested path
    • getExceptionClass

      public String getExceptionClass()
      Gets the name of the exception class that was thrown for this error.
      Returns:
      exception class
    • setExceptionClass

      public void setExceptionClass(String exceptionClass)
      Assigns the name of the exception class that was thrown for this error.
      Parameters:
      exceptionClass - exception class
    • builder