Class InstanceNotFoundException

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

public class InstanceNotFoundException extends RuntimeException
Thrown when you try to update or remove an entity that does not exist in the repository. This exception is a RuntimeException version of javax.management.InstanceNotFoundException.
See Also:
  • Constructor Details

    • InstanceNotFoundException

      public InstanceNotFoundException()
      Default constructor.
    • InstanceNotFoundException

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

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