Class IdHTTPErrorStatusException

All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<IdErrorCode>, com.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>, Serializable

public final class IdHTTPErrorStatusException extends IdException
An exception with an associated error code and HTTP status code.
See Also:
  • Constructor Details

    • IdHTTPErrorStatusException

      public IdHTTPErrorStatusException(String message, IdErrorCode inErrorCode, Map<String,String> inAttributes, Optional<String> inRemediatingAction, int inHttpStatusCode)
      Construct an exception.
      Parameters:
      message - The message
      inErrorCode - The error code
      inAttributes - The error attributes
      inRemediatingAction - The remediating action, if any
      inHttpStatusCode - The HTTP status code
    • IdHTTPErrorStatusException

      public IdHTTPErrorStatusException(String message, Throwable cause, IdErrorCode inErrorCode, Map<String,String> inAttributes, Optional<String> inRemediatingAction, int inHttpStatusCode)
      Construct an exception.
      Parameters:
      message - The message
      cause - The cause
      inErrorCode - The error code
      inAttributes - The error attributes
      inRemediatingAction - The remediating action, if any
      inHttpStatusCode - The HTTP status code
  • Method Details

    • httpStatusCode

      public int httpStatusCode()
      Returns:
      The HTTP status code