Class PolicyNotFoundException

All Implemented Interfaces:
Serializable

public class PolicyNotFoundException extends BadRequestException
Exception class for references to a non-existing policy.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Field Details

    • POLICY_NOT_FOUND_CODE

      public static final ErrorCode.Code POLICY_NOT_FOUND_CODE
      The error code for the error.
  • Constructor Details

    • PolicyNotFoundException

      public PolicyNotFoundException(String message)
      Constructor.
      Parameters:
      message - the error message
    • PolicyNotFoundException

      public PolicyNotFoundException(String message, Throwable cause)
      Constructor.
      Parameters:
      message - the error message
      cause - the cause of the error
  • Method Details

    • getHttpStatus

      public int getHttpStatus()
      If the SignService Integration Service is used from a REST API, the HTTP status may be useful when reporting errors.
      Overrides:
      getHttpStatus in class BadRequestException
      Returns:
      the HTTP status code that should be used when sending an error response for this exception