Package one.tranic.t.base.exception
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
one.tranic.t.base.exception.ParseException
- All Implemented Interfaces:
Serializable
A custom exception that indicates a parsing error in the application.
This exception is a subclass of
RuntimeException and is typically
used to signal invalid or unexpected input that cannot be correctly parsed.
The ParseException can be used in scenarios such as parsing time
arguments or other user-provided data that fails to meet the expected format
or value constraints.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newParseExceptionwith no detail message.ParseException(Exception exception) ParseException(String message) Constructs a new ParseException 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
-
ParseException
Constructs a new ParseException with the specified detail message. The message can be used to provide additional information about the parsing error.- Parameters:
message- the detail message indicating the cause of the parsing error
-
ParseException
public ParseException()Constructs a newParseExceptionwith no detail message.This constructor creates an instance of
ParseExceptionfor use in signaling an error during parsing operations where specific detail about the error is not needed. -
ParseException
-