Class ObjectNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.evolveum.midpoint.util.exception.CommonException
com.evolveum.midpoint.util.exception.ObjectNotFoundException
- All Implemented Interfaces:
- ExceptionContextAware,- SeverityAwareException,- Serializable
Object with specified 
type and identifier (oid) has not been found in the repository or in other
 relevant context.- Author:
- Radovan Semancik
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.util.exception.SeverityAwareExceptionSeverityAwareException.Severity
- 
Field SummaryFields inherited from class com.evolveum.midpoint.util.exception.CommonExceptionlocalizedUserFriendlyMessage, userFriendlyMessage
- 
Constructor SummaryConstructorsConstructorDescriptionObjectNotFoundException(LocalizableMessage message, Throwable cause) ObjectNotFoundException(LocalizableMessage message, Throwable cause, Class<?> type, String oid, boolean expected) ObjectNotFoundException(Class<?> type, String oid) ObjectNotFoundException(Class<?> type, String oid, boolean expected) ObjectNotFoundException(String message) ObjectNotFoundException(String message, Class<?> type, String oid) ObjectNotFoundException(String message, Class<?> type, String oid, boolean expected) ObjectNotFoundException(String message, String oid) Deprecated.ObjectNotFoundException(String message, Throwable cause) Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid) Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, boolean expected) Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, SeverityAwareException.Severity severity) Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.ObjectNotFoundException(String message, Throwable cause, String oid) Deprecated.ObjectNotFoundException(Throwable cause) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a human-readable message that describes the type or class of errors that the exception represents.getOid()@NotNull SeverityAwareException.SeverityNot all exceptions are fatal.Class<?>getType()Provides additional context information to the exception by creating a wrapping one.Methods inherited from class com.evolveum.midpoint.util.exception.CommonExceptiongetContext, getLocalizedMessage, getLocalizedUserFriendlyMessage, getMessage, getTechnicalMessage, getUserFriendlyMessage, setLocalizedUserFriendlyMessage, setTechnicalMessage, toStringMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
- 
Constructor Details- 
ObjectNotFoundExceptionpublic ObjectNotFoundException()
- 
ObjectNotFoundException
- 
ObjectNotFoundExceptionConsider usingwrap(String)if the cause isObjectNotFoundExceptionitself.
- 
ObjectNotFoundException
- 
ObjectNotFoundException
- 
ObjectNotFoundExceptionConsider usingwrap(String)if the cause isObjectNotFoundExceptionitself.
- 
ObjectNotFoundExceptionpublic ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, boolean expected) Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.
- 
ObjectNotFoundExceptionpublic ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, SeverityAwareException.Severity severity) Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.
- 
ObjectNotFoundException
- 
ObjectNotFoundException
- 
ObjectNotFoundExceptionpublic ObjectNotFoundException(LocalizableMessage message, Throwable cause, Class<?> type, String oid, boolean expected) 
- 
ObjectNotFoundException
- 
ObjectNotFoundException
- 
ObjectNotFoundExceptionDeprecated.
- 
ObjectNotFoundExceptionDeprecated.
- 
ObjectNotFoundExceptionDeprecated.
 
- 
- 
Method Details- 
getOid
- 
getType
- 
getErrorTypeMessageDescription copied from class:CommonExceptionReturns a human-readable message that describes the type or class of errors that the exception represents. E.g. "Communication error", "Policy violation", etc. TODO: switch return value to a localized message- Specified by:
- getErrorTypeMessagein class- CommonException
 
- 
getSeverityDescription copied from interface:SeverityAwareExceptionNot all exceptions are fatal. This method returns the (estimated) severity of this exception. The final decision is up to the exception handling code, of course. It may or may not accept this value.
- 
wrapProvides additional context information to the exception by creating a wrapping one.
 
-