Package com.denodo.util.exceptions
Class InstanceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.denodo.util.exceptions.ModelException
com.denodo.util.exceptions.InstanceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DuplicateInstanceException,InstanceNotFoundException
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstanceException(String specificMessage, Object key, Class clazz) Creates an exception, informing about the message, the key of the object that causes it and the object class name.protectedInstanceException(String specificMessage, Object key, String className) Creates an exception, informing about the message, the key of the object that causes it and the object class name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name of the object that caused the exception.getKey()Returns the key of the object that caused the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InstanceException
Creates an exception, informing about the message, the key of the object that causes it and the object class name.- Parameters:
specificMessage- the error message.key- the key of the object that produces the error.clazz- the class of the object that produces the error.
-
InstanceException
Creates an exception, informing about the message, the key of the object that causes it and the object class name.- Parameters:
specificMessage- the error message.key- the key of the object that produces the error.className- the class name of the object that produces the error.
-
-
Method Details
-
getKey
Returns the key of the object that caused the exception.- Returns:
- the key.
-
getClassName
Returns the class name of the object that caused the exception.- Returns:
- the class name.
-