Class NotFoundException

All Implemented Interfaces:
Serializable

public class NotFoundException extends NoSuchElementException
If you did not find a result and want to avoid 'null" as return value you can throw this exception here. Originally this exception was part of PatternTesting and derived direct from RuntimeException. Now it is derived direct from NoSuchElementException because it fits better and it has a NotFoundException(String, Throwable) constructor.
Author:
oliver
See Also:
  • Constructor Details

    • NotFoundException

      public NotFoundException(Object value)
      Instantiates a new not found exception.
      Parameters:
      value - the object which was not found
    • NotFoundException

      public NotFoundException(String msg)
      Instantiates a new not found exception.
      Parameters:
      msg - the message
    • NotFoundException

      public NotFoundException(String msg, Throwable t)
      Instantiates a new not found exception.
      Parameters:
      msg - the message
      t - the cause
  • Method Details