Package org.seedstack.seed
Class SeedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.seedstack.shed.exception.BaseException
-
- org.seedstack.seed.SeedException
-
- All Implemented Interfaces:
Serializable
public class SeedException extends org.seedstack.shed.exception.BaseExceptionThis is the base class for all SeedStack Java framework exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSeedException(org.seedstack.shed.exception.ErrorCode errorCode)protectedSeedException(org.seedstack.shed.exception.ErrorCode errorCode, Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SeedExceptioncreateNew(org.seedstack.shed.exception.ErrorCode errorCode)Create a new SeedException from anErrorCode.static SeedExceptionwrap(Throwable throwable, org.seedstack.shed.exception.ErrorCode errorCode)Wrap a SeedException with anErrorCodearound an existingThrowable.-
Methods inherited from class org.seedstack.shed.exception.BaseException
createNew, get, getCauses, getDescription, getErrorCode, getFix, getProperties, getUrl, put, toString, wrap
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
SeedException
protected SeedException(org.seedstack.shed.exception.ErrorCode errorCode)
-
SeedException
protected SeedException(org.seedstack.shed.exception.ErrorCode errorCode, Throwable cause)
-
-
Method Detail
-
createNew
public static SeedException createNew(org.seedstack.shed.exception.ErrorCode errorCode)
Create a new SeedException from anErrorCode.- Parameters:
errorCode- the error code to set.- Returns:
- the created SeedException.
-
wrap
public static SeedException wrap(Throwable throwable, org.seedstack.shed.exception.ErrorCode errorCode)
Wrap a SeedException with anErrorCodearound an existingThrowable.- Parameters:
throwable- the existing throwable to wrap.errorCode- the error code to set.- Returns:
- the created SeedException.
-
-