Class IdException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.idstore.error_codes.IdException
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<IdErrorCode>, com.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>, Serializable
- Direct Known Subclasses:
IdAClientException, IdCommandExecutionFailure, IdDatabaseException, IdHTTPErrorStatusException, IdPasswordException, IdProtocolException, IdRequestLimitExceeded, IdSecurityException, IdServerException, IdUClientException
public class IdException
extends Exception
implements com.io7m.seltzer.api.SStructuredErrorExceptionType<IdErrorCode>
The base type of exceptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIdException(String message, IdErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.IdException(String message, Throwable cause, IdErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception. -
Method Summary
Methods 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
-
IdException
public IdException(String message, IdErrorCode 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
-
IdException
public IdException(String message, Throwable cause, IdErrorCode 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<IdErrorCode>
-
attributes
- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>
-
remediatingAction
- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>
-
exception
- Specified by:
exceptionin interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>
-