Class NotFoundException

All Implemented Interfaces:
Serializable

public class NotFoundException extends RuntimeException
Exception thrown when a fetch for something could not be found. This is associated with the getSafe() and keySafe() methods on Ref; if the item being sought in the Ref couldn't be found, this will be thrown.
See Also:
  • Constructor Details

    • NotFoundException

      public NotFoundException()
      Thrown when there is no key context (eg, query.first() on an empty result set)
    • NotFoundException

      public NotFoundException(Key<?> key)
      Thrown when we at least know what we are looking for!
  • Method Details

    • getKey

      public Key<?> getKey()
      Returns:
      the key we are looking for, if known