Class ResourceNotFoundException

All Implemented Interfaces:
Serializable

public class ResourceNotFoundException extends RuntimeException
This class represents a custom exception that is thrown when a specific resource is not found. It extends the RuntimeException class, which is a form of Throwable that indicates conditions that a reasonable application might want to catch.
Version:
1.0
See Also:
  • Constructor Details

    • ResourceNotFoundException

      public ResourceNotFoundException(String message)
      Constructs a new ResourceNotFoundException with the specified detail message. The detail message is saved for later retrieval by the getMessage() method.
      Parameters:
      message - the detail message. This is the specific detail about why the exception was thrown.
    • ResourceNotFoundException

      public ResourceNotFoundException(Throwable cause)
      Constructs a new ResourceNotFoundException with the specified cause. The cause is saved for later retrieval by the getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
      Parameters:
      cause - the cause (which is saved for later retrieval by the getCause() method). This is the underlying reason that caused this exception to be thrown.
    • ResourceNotFoundException

      public ResourceNotFoundException(String message, Throwable cause)
      Constructs a new ResourceNotFoundException with the specified detail message and cause. The detail message is saved for later retrieval by the getMessage() method. The cause is saved for later retrieval by the getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
      Parameters:
      message - the detail message. This is the specific detail about why the exception was thrown.
      cause - the cause. This is the underlying reason that caused this exception to be thrown.