com.sri.common.dbobj
Class ObjectNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sri.common.dbobj.ObjectNotFoundException
All Implemented Interfaces:
Serializable

public class ObjectNotFoundException
extends Exception

Error that is thrown when Repositories do not find the resulting object. Unlike RepositoryException that throws Runtime Exceptions, this particular error is expected to be handled and thus throws a regular exception.

Version:
1.0
Author:
Michael Rimov
See Also:
Serialized Form

Constructor Summary
ObjectNotFoundException()
          Default constructor.
ObjectNotFoundException(String message)
          Constructor that takes a message.
ObjectNotFoundException(String message, Throwable cause)
          Constructor that takes a message and a nested exception.
ObjectNotFoundException(Throwable cause)
          Constructor that takes a nested exception/error.
 
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

ObjectNotFoundException

public ObjectNotFoundException()
Default constructor.


ObjectNotFoundException

public ObjectNotFoundException(String message)
Constructor that takes a message.

Parameters:
message - String

ObjectNotFoundException

public ObjectNotFoundException(Throwable cause)
Constructor that takes a nested exception/error.

Parameters:
cause - Throwable the nested error.

ObjectNotFoundException

public ObjectNotFoundException(String message,
                               Throwable cause)
Constructor that takes a message and a nested exception.

Parameters:
message - String the message.
cause - Throwable the underlying exception.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.