Package one.tranic.t.base.exception
Class UnsupportedTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
one.tranic.t.base.exception.UnsupportedTypeException
- All Implemented Interfaces:
Serializable
A custom exception that indicates an operation involving an unsupported or invalid type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newUnsupportedTypeExceptionwith no detail message.UnsupportedTypeException(Exception exception) Constructs a newUnsupportedTypeExceptionwith the specified exception as the cause.UnsupportedTypeException(Object object) Constructs a newUnsupportedTypeExceptionwith a detail message that includes the class name of the unsupported object's type.UnsupportedTypeException(String message) Constructs a new UnsupportedTypeException with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedTypeException
Constructs a new UnsupportedTypeException with the specified detail message.The message can provide additional information about the unsupported or invalid type.
- Parameters:
message- the detail message explaining the cause or context of the exception
-
UnsupportedTypeException
public UnsupportedTypeException()Constructs a newUnsupportedTypeExceptionwith no detail message.This constructor creates an instance of
UnsupportedTypeExceptionfor use in signaling operations involving unsupported or invalid types where no specific message is required. -
UnsupportedTypeException
Constructs a newUnsupportedTypeExceptionwith the specified exception as the cause.- Parameters:
exception- the exception that caused thisUnsupportedTypeExceptionto be thrown
-
UnsupportedTypeException
Constructs a newUnsupportedTypeExceptionwith a detail message that includes the class name of the unsupported object's type.- Parameters:
object- the object of the unsupported type
-