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 specified criteria (OID) has not been found in the repository.- Author:
- Radovan Semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.util.exception.CommonException
localizedUserFriendlyMessage, userFriendlyMessage
-
-
Constructor Summary
Constructors Constructor Description ObjectNotFoundException()
ObjectNotFoundException(LocalizableMessage userFriendlyMessage)
ObjectNotFoundException(LocalizableMessage userFriendlyMessage, Throwable cause)
ObjectNotFoundException(Class<?> type, String oid)
ObjectNotFoundException(String message)
ObjectNotFoundException(String message, Class<?> type, String oid)
ObjectNotFoundException(String message, String oid)
ObjectNotFoundException(String message, Throwable cause)
ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid)
ObjectNotFoundException(String message, Throwable cause, String oid)
ObjectNotFoundException(Throwable cause)
-
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()
Class<?>
getType()
-
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(LocalizableMessage userFriendlyMessage, Throwable cause)
-
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause, String oid)
-
ObjectNotFoundException
public ObjectNotFoundException(String message, Throwable cause, Class<?> type, String oid)
-
ObjectNotFoundException
public ObjectNotFoundException(String message)
-
ObjectNotFoundException
public ObjectNotFoundException(LocalizableMessage userFriendlyMessage)
-
ObjectNotFoundException
public ObjectNotFoundException(Throwable cause)
-
-
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
-
-