patterntesting.runtime.exception
Class NotFoundException

Package class diagram package NotFoundException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by patterntesting.runtime.exception.NotFoundException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ValueNotFoundException

public class NotFoundException
extends RuntimeException

If you did not find a result and want to avoid 'null" as return value you can throw this exception here. Like IllegalArgumentException it is derived from RuntimeException.

Since:
1.4 (11.11.2013)
Author:
oliver
See Also:
RuntimeException, Serialized Form

Constructor Summary
NotFoundException(Object notFound)
          Instantiates a new not found exception.
NotFoundException(String msg)
          Instantiates a new not found exception.
NotFoundException(String msg, Throwable t)
          Instantiates a new not found exception.
NotFoundException(Throwable t)
          Instantiates a new not found exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotFoundException

public NotFoundException(Object notFound)
Instantiates a new not found exception.

Parameters:
notFound - the object which was not found

NotFoundException

public NotFoundException(String msg)
Instantiates a new not found exception.

Parameters:
msg - the msg

NotFoundException

public NotFoundException(Throwable t)
Instantiates a new not found exception.

Parameters:
t - the t

NotFoundException

public NotFoundException(String msg,
                         Throwable t)
Instantiates a new not found exception.

Parameters:
msg - the msg
t - the t


Copyright © 2002–2014 PatternTesting Team. All rights reserved.