Class ResourceNotFoundException

All Implemented Interfaces:
Serializable

public class ResourceNotFoundException
extends ApiException
Exception thrown due to a request for a resource that does not exist.
See Also:
Serialized Form
  • Constructor Details

    • ResourceNotFoundException

      public ResourceNotFoundException​(String message)
      Constructor
      Parameters:
      message - the exception's message
    • ResourceNotFoundException

      public ResourceNotFoundException​(String message, Throwable cause)
      Parameters:
      message - the exception's message
      cause - the exception's cause
    • ResourceNotFoundException

      public ResourceNotFoundException​(String resource, String message)
      Constructor
      Parameters:
      resource - the (potentially null) resource that was not found
      message - the exception's message
    • ResourceNotFoundException

      public ResourceNotFoundException​(String resource, String message, Throwable cause)
      Constructor
      Parameters:
      resource - the (potentially null) resource that was not found
      message - the exception's message
      cause - the exception's cause
  • Method Details

    • resource

      public String resource()
      Returns:
      the (potentially null) resource that was not found