Class NotFoundException

All Implemented Interfaces:
Serializable

public class NotFoundException extends UserException
The given Id or other identifier was not found. Where a single object is specified as a return value in response to lookup by an identifier, this error must be returned if not found. In methods that specify an OsidList or other grouping as a return value, an empty list should be returned where this error is not specified.
See Also:
  • Constructor Details

    • NotFoundException

      public NotFoundException(String msg)
      Constructs a NotFoundException with the specified detail message. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
    • NotFoundException

      public NotFoundException(String msg, Throwable t)
      Constructs a NotFoundException with the specified detail message and cause. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
      t - the cause of the exception
    • NotFoundException

      public NotFoundException(Throwable t)
      Constructs a NotFoundException with the specified cause and a detail message of cause.toString() which typically contains the class and detail message of cause.
      Parameters:
      t - the cause of the exception