Class StException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.stonesignal.server.errors.StException
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<StErrorCode>,com.io7m.seltzer.api.SStructuredErrorType<StErrorCode>,Serializable
public class StException
extends Exception
implements com.io7m.seltzer.api.SStructuredErrorExceptionType<StErrorCode>
The type of exceptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStException(String message, StErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception.StException(String message, Throwable cause, StErrorCode inErrorCode, Map<String, String> inAttributes, Optional<String> inRemediatingAction) Construct an exception. -
Method Summary
Methods 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
-
StException
public StException(String message, StErrorCode 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
-
StException
public StException(String message, Throwable cause, StErrorCode 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<StErrorCode>
-
attributes
- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<StErrorCode>
-
remediatingAction
- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<StErrorCode>
-
exception
- Specified by:
exceptionin interfacecom.io7m.seltzer.api.SStructuredErrorType<StErrorCode>
-