Class CommonException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.evolveum.midpoint.util.exception.CommonException
- All Implemented Interfaces:
- SeverityAwareException,- Serializable
- Direct Known Subclasses:
- CommunicationException,- ConcurrencyException,- ConfigurationException,- ExpressionEvaluationException,- ObjectAlreadyExistsException,- ObjectNotFoundException,- PolicyViolationException,- PrismContainerValue.RemovedItemDefinitionException,- SchemaException,- SecurityViolationException
Superclass for all common midPoint exceptions.
- Author:
- Radovan Semancik
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.util.exception.SeverityAwareExceptionSeverityAwareException.Severity
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringUser-friendly message in system locale.protected LocalizableMessageUser-friendly localizable detail message.
- 
Constructor SummaryConstructorsConstructorDescriptionCommonException(LocalizableMessage userFriendlyMessage) CommonException(LocalizableMessage userFriendlyMessage, Throwable cause) CommonException(String technicalMessage) CommonException(String technicalMessage, Throwable cause) CommonException(String technicalMessage, Throwable cause, LocalizableMessage userFriendlyMessage) CommonException(Throwable cause) 
- 
Method SummaryModifier and TypeMethodDescriptionabstract StringReturns a human-readable message that describes the type or class of errors that the exception represents.User-friendly (localizable) message that describes this error.voidsetLocalizedUserFriendlyMessage(String localizedUserFriendlyMessage) voidsetTechnicalMessage(String technicalMessage) toString()Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.exception.SeverityAwareExceptiongetSeverity
- 
Field Details- 
userFriendlyMessageUser-friendly localizable detail message.
- 
localizedUserFriendlyMessageUser-friendly message in system locale. This value should correspond to userFriendlyMessage translated into system locale.
 
- 
- 
Constructor Details- 
CommonExceptionpublic CommonException()
- 
CommonException
- 
CommonException
- 
CommonException
- 
CommonException
- 
CommonException
- 
CommonExceptionpublic CommonException(String technicalMessage, Throwable cause, LocalizableMessage userFriendlyMessage) 
 
- 
- 
Method Details- 
getErrorTypeMessageReturns 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
- 
getUserFriendlyMessageUser-friendly (localizable) message that describes this error. The message is intended to be understood by user or system administrators. It should NOT contain any developer language (even if this is internal error).
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
- 
getLocalizedMessage- Overrides:
- getLocalizedMessagein class- Throwable
 
- 
getTechnicalMessage
- 
setTechnicalMessage
- 
getLocalizedUserFriendlyMessage
- 
setLocalizedUserFriendlyMessage
- 
toString
 
-