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 specifiedtypeand 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 StringgetErrorTypeMessage()Returns a human-readable message that describes the type or class of errors that the exception represents.StringgetOid()CommonException.SeveritygetSeverity()Not all exceptions are fatal.Class<?>getType()ObjectNotFoundExceptionwrap(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 isObjectNotFoundExceptionitself.
-
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 isObjectNotFoundExceptionitself.
-
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, boolean expected)
Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.
-
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid, CommonException.Severity severity)
Consider usingwrap(String)if the cause isObjectNotFoundExceptionitself.
-
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: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 classCommonException
-
getSeverity
@NotNull public CommonException.Severity getSeverity()
Description copied from class:CommonExceptionNot 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:
getSeverityin classCommonException
-
wrap
public ObjectNotFoundException wrap(String context)
Provides additional context information to the exception by creating a wrapping one.
-
-