Package com.io7m.quarrel.core
Class QException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.quarrel.core.QException
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<String>,com.io7m.seltzer.api.SStructuredErrorType<String>,Serializable
public final class QException
extends Exception
implements com.io7m.seltzer.api.SStructuredErrorExceptionType<String>
The type of exceptions raised by the package.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQException(String message, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, List<com.io7m.seltzer.api.SStructuredErrorType<String>> inExtraErrors) Construct an exception.QException(String message, Throwable cause, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, List<com.io7m.seltzer.api.SStructuredErrorType<String>> inExtraErrors) Construct an exception. -
Method Summary
Modifier and TypeMethodDescriptionMethods 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
-
QException
public QException(String message, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, List<com.io7m.seltzer.api.SStructuredErrorType<String>> inExtraErrors) Construct an exception.- Parameters:
message- The messageinErrorCode- The error codeinAttributes- The error attributesinRemediatingAction- The remediating action, if anyinExtraErrors- The extra errors, if any
-
QException
public QException(String message, Throwable cause, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction, List<com.io7m.seltzer.api.SStructuredErrorType<String>> inExtraErrors) Construct an exception.- Parameters:
message- The messagecause- The causeinErrorCode- The error codeinAttributes- The error attributesinRemediatingAction- The remediating action, if anyinExtraErrors- The extra errors, if any
-
-
Method Details
-
extraErrors
- Returns:
- The extra errors
-
errorCode
- Specified by:
errorCodein interfacecom.io7m.seltzer.api.SStructuredErrorType<String>
-
attributes
- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>
-
remediatingAction
- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>
-
exception
- Specified by:
exceptionin interfacecom.io7m.seltzer.api.SStructuredErrorType<String>
-