Class DataTableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.martincooper.datatable.DataTableException
- All Implemented Interfaces:
Serializable
Custom Data Table Exception.
Created by Martin Cooper on 14/07/2017.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataTableException(String message) Data Table ExceptionDataTableException(String message, Throwable throwable) Data Table 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
-
DataTableException
Data Table Exception- Parameters:
message- The exception message.
-
DataTableException
Data Table Exception- Parameters:
message- The exception message.throwable- The inner exception.
-
-
Method Details
-
tryError
Creates a DataTableException wrapped in a Try.- Type Parameters:
T- The Try type.- Parameters:
errorMessage- The error message.- Returns:
- Returns a new DataTable Exception in a try.
-
tryError
Creates a DataTableException wrapped in a Try.- Type Parameters:
T- The Try type.- Parameters:
errorMessage- The error message.throwable- The inner exception.- Returns:
- Returns a new DataTable Exception in a try.
-