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 Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.util.exception.SeverityAwareException
SeverityAwareException.Severity
-
Field Summary
Fields inherited from class com.evolveum.midpoint.util.exception.CommonException
localizedUserFriendlyMessage, userFriendlyMessage
-
Constructor Summary
ConstructorDescriptionObjectNotFoundException
(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 isObjectNotFoundException
itself.ObjectNotFoundException
(String message, Throwable cause, Class<?> type, String oid) Consider usingwrap(String)
if the cause isObjectNotFoundException
itself.ObjectNotFoundException
(String message, Throwable cause, Class<?> type, String oid, boolean expected) Consider usingwrap(String)
if the cause isObjectNotFoundException
itself.ObjectNotFoundException
(String message, Throwable cause, Class<?> type, String oid, SeverityAwareException.Severity severity) Consider usingwrap(String)
if the cause isObjectNotFoundException
itself.ObjectNotFoundException
(String message, Throwable cause, String oid) Deprecated.ObjectNotFoundException
(Throwable cause) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable message that describes the type or class of errors that the exception represents.getOid()
@NotNull SeverityAwareException.Severity
Not 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.CommonException
getContext, getLocalizedMessage, getLocalizedUserFriendlyMessage, getMessage, getTechnicalMessage, getUserFriendlyMessage, setLocalizedUserFriendlyMessage, setTechnicalMessage, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ObjectNotFoundException
public ObjectNotFoundException() -
ObjectNotFoundException
-
ObjectNotFoundException
Consider usingwrap(String)
if the cause isObjectNotFoundException
itself. -
ObjectNotFoundException
-
ObjectNotFoundException
-
ObjectNotFoundException
Consider usingwrap(String)
if the cause isObjectNotFoundException
itself. -
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, boolean expected) Consider usingwrap(String)
if the cause isObjectNotFoundException
itself. -
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, SeverityAwareException.Severity severity) Consider usingwrap(String)
if the cause isObjectNotFoundException
itself. -
ObjectNotFoundException
-
ObjectNotFoundException
-
ObjectNotFoundException
public ObjectNotFoundException(LocalizableMessage message, Throwable cause, Class<?> type, String oid, boolean expected) -
ObjectNotFoundException
-
ObjectNotFoundException
-
ObjectNotFoundException
Deprecated. -
ObjectNotFoundException
Deprecated. -
ObjectNotFoundException
Deprecated.
-
-
Method Details
-
getOid
-
getType
-
getErrorTypeMessage
Description copied from class:CommonException
Returns 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:
getErrorTypeMessage
in classCommonException
-
getSeverity
Description copied from interface:SeverityAwareException
Not 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. -
wrap
Provides additional context information to the exception by creating a wrapping one.
-