org.sakaiproject.coursemanagement.api.exception
Class IdNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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 foundclassName - The class of object for which we were looking.
Copyright © 2006-2013 Sakai Project. All Rights Reserved.