Class OceanusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.tonywasher.joceanus.oceanus.base.OceanusException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PrometheusSheetException,TethysUIDataException,TethysUIThreadCancelException
Exception extension class. Provides capability of attaching ExceptionClass and Causing object to
exception.
- Author:
- Tony Washer
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOceanusException(Object o, String s) Create a new Exception object based on a string and an object.protectedOceanusException(Object o, String s, Throwable c) Create a new Exception object based on a string, an object and an underlying exception.protectedCreate a new Exception object based on a string and class.protectedOceanusException(String s, Throwable c) Create a new Exception object based on a string and an underlying exception.protectedCreate a wrapped Exception object based on an underlying exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OceanusException
Create a wrapped Exception object based on an underlying exception.- Parameters:
c- the underlying exception
-
OceanusException
Create a new Exception object based on a string and class.- Parameters:
s- the description of the exception
-
OceanusException
Create a new Exception object based on a string and an underlying exception.- Parameters:
s- the description of the exceptionc- the underlying exception
-
OceanusException
Create a new Exception object based on a string and an object.- Parameters:
o- the associated objects- the description of the exception
-
OceanusException
Create a new Exception object based on a string, an object and an underlying exception.- Parameters:
o- the associated objects- the description of the exceptionc- the underlying exception
-
-
Method Details
-
getObject
Get the associated object.- Returns:
- the associated object
-