Class IdCommandExecutionFailure

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.idstore.error_codes.IdException
com.io7m.idstore.server.controller.command_exec.IdCommandExecutionFailure
All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<IdErrorCode>, com.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>, Serializable

public final class IdCommandExecutionFailure extends IdException
A failure to execute a command.
See Also:
  • Constructor Details

    • IdCommandExecutionFailure

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

      public IdCommandExecutionFailure(String message, Throwable cause, IdErrorCode inErrorCode, Map<String,String> inAttributes, Optional<String> inRemediatingAction, UUID inRequestId, 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
      inRequestId - The request ID
      inHttpStatusCode - The HTTP status code
  • Method Details

    • requestId

      public UUID requestId()
      Returns:
      The request ID
    • httpStatusCode

      public int httpStatusCode()
      Returns:
      The HTTP status code