Class CAException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.cardant.error_codes.CAException
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<CAErrorCode>,com.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>,Serializable
- Direct Known Subclasses:
CAClientException,CACommandExecutionFailure,CADatabaseException,CAHTTPErrorStatusException,CAProtocolException,CARequestLimitExceeded,CASecurityException,CAServerException
public class CAException
extends Exception
implements com.io7m.seltzer.api.SStructuredErrorExceptionType<CAErrorCode>
The base type of exceptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCAException(String message, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.CAException(String message, Throwable cause, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.seltzer.api.SStructuredErrorExceptionType
getMessage, message
-
Constructor Details
-
CAException
public CAException(String message, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.- Parameters:
message- The messageinErrorCode- The error codeinAttributes- The error attributesinRemediatingAction- The remediating action, if any
-
CAException
public CAException(String message, Throwable cause, CAErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.- Parameters:
message- The messagecause- The causeinErrorCode- The error codeinAttributes- The error attributesinRemediatingAction- The remediating action, if any
-
-
Method Details
-
errorCode
- Specified by:
errorCodein interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>
-
attributes
- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>
-
remediatingAction
- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>
-
exception
- Specified by:
exceptionin interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>
-