Package io.github.coho04.mysql.errors
Class ExceptionHandler
java.lang.Object
io.github.coho04.mysql.errors.ExceptionHandler
The ExceptionHandler class handles exceptions and takes action based on the configuration flags.
-
Constructor Summary
ConstructorDescriptionThe ExceptionHandler class handles exceptions and takes action based on the configuration flags. -
Method Summary
Modifier and TypeMethodDescriptionvoid
callException
(Exception exception) Throws an exception and takes action based on the configuration flags.boolean
isPrint()
Returns the value of the 'print' flag.void
setBreakProgramm
(boolean breakProgramm) Sets the value of the 'breakProgramm' flag.void
setPrint
(boolean print) Sets the value of the 'print' flag.
-
Constructor Details
-
ExceptionHandler
public ExceptionHandler()The ExceptionHandler class handles exceptions and takes action based on the configuration flags.
-
-
Method Details
-
isPrint
public boolean isPrint()Returns the value of the 'print' flag.- Returns:
- true if print is enabled, false otherwise
-
setPrint
public void setPrint(boolean print) Sets the value of the 'print' flag.- Parameters:
print
- the new value of the 'print' flag
-
setBreakProgramm
public void setBreakProgramm(boolean breakProgramm) Sets the value of the 'breakProgramm' flag.- Parameters:
breakProgramm
- the new value of the 'breakProgramm' flag
-
callException
Throws an exception and takes action based on the configuration flags.- Parameters:
exception
- The exception to throw.- Throws:
Exception
- if the 'print' flag is enabled.
-