Class TransactionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.marcopaglio.booking.exception.TransactionException
All Implemented Interfaces:
Serializable

public class TransactionException extends RuntimeException
Thrown when a generic database transaction fails.
See Also:
  • Constructor Details

    • TransactionException

      public TransactionException()
      Default constructor.
    • TransactionException

      public TransactionException(String errorMessage)
      Constructs a TransactionException with the specified detail message.
      Parameters:
      errorMessage - specifies the error message.
    • TransactionException

      public TransactionException(String message, Throwable cause)
      Constructs a TransactionException with the specified detail message and the cause.
      Parameters:
      message - specifies the error message.
      cause - the cause of the exception.