Package com.io7m.idstore.user_client.api
Class IdUClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.idstore.error_codes.IdException
com.io7m.idstore.user_client.api.IdUClientException
- All Implemented Interfaces:
- com.io7m.seltzer.api.SStructuredErrorExceptionType<IdErrorCode>,- com.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>,- Serializable
The type of client exceptions.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionIdUClientException(String message, IdErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, Optional<UUID> inRequestId) Construct an exception.IdUClientException(String message, Throwable cause, IdErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, Optional<UUID> inRequestId) Construct an exception.
- 
Method SummaryModifier and TypeMethodDescriptionstatic IdUClientExceptionofError(IdUResponseError error) Transform an error response to an exception.static IdUClientExceptionofException(Throwable ex) Construct an exception from an existing exception.Methods inherited from class com.io7m.idstore.error_codes.IdExceptionattributes, errorCode, exception, remediatingActionMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.seltzer.api.SStructuredErrorExceptionTypegetMessage, message
- 
Constructor Details- 
IdUClientExceptionpublic IdUClientException(String message, IdErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, Optional<UUID> inRequestId) 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
 
- 
IdUClientExceptionpublic IdUClientException(String message, Throwable cause, IdErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, Optional<UUID> inRequestId) 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
 
 
- 
- 
Method Details- 
requestId- Returns:
- The ID associated with the request, if the server returned one
 
- 
ofErrorTransform an error response to an exception.- Parameters:
- error- The error
- Returns:
- The exception
 
- 
ofExceptionConstruct an exception from an existing exception.- Parameters:
- ex- The cause
- Returns:
- The new exception
 
 
-