Class ExceptionHandler

java.lang.Object
io.github.coho04.mysql.errors.ExceptionHandler

public class ExceptionHandler extends Object
The ExceptionHandler class handles exceptions and takes action based on the configuration flags.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The ExceptionHandler class handles exceptions and takes action based on the configuration flags.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Throws an exception and takes action based on the configuration flags.
    boolean
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void callException(Exception exception) throws Exception
      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.