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:
Serializable
public class ObjectNotFoundException extends CommonException
Object with specifiedtype
and identifier (oid
) has not been found in the repository or in other relevant context.- Author:
- Radovan Semancik
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.util.exception.CommonException
CommonException.Severity
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.util.exception.CommonException
localizedUserFriendlyMessage, userFriendlyMessage
-
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorTypeMessage()
Returns a human-readable message that describes the type or class of errors that the exception represents.String
getOid()
CommonException.Severity
getSeverity()
Not all exceptions are fatal.Class<?>
getType()
ObjectNotFoundException
wrap(String context)
Provides additional context information to the exception by creating a wrapping one.-
Methods inherited from class com.evolveum.midpoint.util.exception.CommonException
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 Detail
-
ObjectNotFoundException
public ObjectNotFoundException()
-
ObjectNotFoundException
public ObjectNotFoundException(String message)
-
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause)
Consider usingwrap(String)
if the cause isObjectNotFoundException
itself.
-
ObjectNotFoundException
public ObjectNotFoundException(String message, Class<?> type, String oid, boolean expected)
-
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid)
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, CommonException.Severity severity)
Consider usingwrap(String)
if the cause isObjectNotFoundException
itself.
-
ObjectNotFoundException
public ObjectNotFoundException(Class<?> type, String oid, boolean expected)
-
ObjectNotFoundException
public ObjectNotFoundException(LocalizableMessage message, Throwable cause, Class<?> type, String oid, boolean expected)
-
ObjectNotFoundException
public ObjectNotFoundException(LocalizableMessage message)
-
ObjectNotFoundException
public ObjectNotFoundException(LocalizableMessage message, Throwable cause)
-
ObjectNotFoundException
@Deprecated public ObjectNotFoundException(String message, Throwable cause, String oid)
Deprecated.
-
ObjectNotFoundException
@Deprecated public ObjectNotFoundException(String message, String oid)
Deprecated.
-
ObjectNotFoundException
@Deprecated public ObjectNotFoundException(Throwable cause)
Deprecated.
-
-
Method Detail
-
getOid
public String getOid()
-
getType
public Class<?> getType()
-
getErrorTypeMessage
public String 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
@NotNull public CommonException.Severity getSeverity()
Description copied from class:CommonException
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.- Overrides:
getSeverity
in classCommonException
-
wrap
public ObjectNotFoundException wrap(String context)
Provides additional context information to the exception by creating a wrapping one.
-
-