org.sakaiproject.coursemanagement.api.exception
Class IdNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.sakaiproject.coursemanagement.api.exception.IdNotFoundException
All Implemented Interfaces:
Serializable

public class IdNotFoundException
extends RuntimeException

An exception thrown when an an object lookup fails because an object with the ID does not exist.

Author:
Josh Holtzman
See Also:
Serialized Form

Constructor Summary
IdNotFoundException(String message)
          Constructs an IdNotFoundException with a generic message (useful when the more specific constructor isn't suitable, because we don't know what kind of ID wasn't found).
IdNotFoundException(String id, String className)
          Constructs an IdNotFoundException indicating the class for which the id could not be located.
 
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

IdNotFoundException

public IdNotFoundException(String message)
Constructs an IdNotFoundException with a generic message (useful when the more specific constructor isn't suitable, because we don't know what kind of ID wasn't found).

Parameters:
message -

IdNotFoundException

public IdNotFoundException(String id,
                           String className)
Constructs an IdNotFoundException indicating the class for which the id could not be located.

Parameters:
id - The ID that can't be found
className - The class of object for which we were looking.


Copyright © 2011 Sakai Project. All Rights Reserved.