Class CAHTTPErrorStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.cardant.error_codes.CAException
com.io7m.cardant.server.http.CAHTTPErrorStatusException
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<CAErrorCode>, com.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>, Serializable
An exception with an associated error code and HTTP status code.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCAHTTPErrorStatusException(String message, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, int inHttpStatusCode) Construct an exception.CAHTTPErrorStatusException(String message, Throwable cause, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, int inHttpStatusCode) Construct an exception. -
Method Summary
Methods inherited from class CAException
attributes, errorCode, exception, remediatingActionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.seltzer.api.SStructuredErrorExceptionType
getMessage, message
-
Constructor Details
-
CAHTTPErrorStatusException
public CAHTTPErrorStatusException(String message, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, int inHttpStatusCode) Construct an exception.- Parameters:
message- The messageinErrorCode- The error codeinAttributes- The error attributesinRemediatingAction- The remediating action, if anyinHttpStatusCode- The HTTP status code
-
CAHTTPErrorStatusException
public CAHTTPErrorStatusException(String message, Throwable cause, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, int inHttpStatusCode) Construct an exception.- Parameters:
message- The messagecause- The causeinErrorCode- The error codeinAttributes- The error attributesinRemediatingAction- The remediating action, if anyinHttpStatusCode- The HTTP status code
-
-
Method Details
-
httpStatusCode
public int httpStatusCode()- Returns:
- The HTTP status code
-