Class CLNException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.calino.api.CLNException
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<String>, com.io7m.seltzer.api.SStructuredErrorType<String>, Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionCLNException(String message, Throwable cause, Map<String, String> inAttributes, String inErrorCode, Optional<String> inRemediatingAction) Construct an exception.CLNException(String message, Map<String, String> inAttributes, String inErrorCode, Optional<String> inRemediatingAction) Construct an exception.CLNException(Throwable cause, Map<String, String> inAttributes, String inErrorCode, 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
-
CLNException
-
CLNException
public CLNException(String message, Throwable cause, Map<String, String> inAttributes, String inErrorCode, Optional<String> inRemediatingAction) Construct an exception.- Parameters:
message- The messagecause- The causeinAttributes- The attributesinErrorCode- The error codeinRemediatingAction- The remediating action
-
CLNException
-
-
Method Details
-
wrap
Wrap the given exception. The function takes into account whether the incoming exception is a structured error, and the existing exception might be treated as the cause of the wrapped exception.- Parameters:
x- The exception- Returns:
- The wrapped result
-
attributes
-
errorCode
-
remediatingAction
-
exception
-