Class MException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.montarre.api.MException
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<String>, com.io7m.seltzer.api.SStructuredErrorType<String>, Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an exception.MException(String message, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.MException(String message, String inErrorCode, Optional<String> inRemediatingAction) Construct an exception.MException(String message, Throwable cause, String inErrorCode) Construct an exception.Construct an exception.MException(String message, Throwable cause, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.MException(String message, Throwable cause, String inErrorCode, Optional<String> inRemediatingAction) Construct an exception.MException(Throwable cause, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.MException(Throwable cause, 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
-
MException
-
MException
-
MException
public MException(String message, Throwable cause, String inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.- Parameters:
message- The messagecause- The causeinErrorCode- The error codeinAttributes- The attributesinRemediatingAction- The remediating action
-
MException
-
MException
-
MException
-
MException
-
MException
-
MException
-
-
Method Details
-
wrap
Wrap an exception.- Parameters:
e- The exception- Returns:
- The wrapped exception
-
errorCode
-
attributes
-
remediatingAction
-
exception
-