public class ObjectNotFoundException extends Exception
| Constructor and Description |
|---|
ObjectNotFoundException(String objectName)
Constructor
|
ObjectNotFoundException(String objectName,
Throwable cause)
Constructor with a cause
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkObject(Object obj,
String objName)
Checks and throws if object is null.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ObjectNotFoundException(String objectName)
objectName - (String, mandatory) Name of object that wasn't found although
expected to be there.public static void checkObject(Object obj, String objName) throws ObjectNotFoundException
obj - (Object) object expected not to be nullobjName - (String, mandatory), name of objectObjectNotFoundExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.