Class DynamicInformationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ametys.plugins.linkdirectory.dynamic.DynamicInformationException
- All Implemented Interfaces:
Serializable
Common exception for dynamic information
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum for type of exception -
Constructor Summary
ConstructorDescriptionDynamicInformationException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.Constructs a new exception with the specified detail message.DynamicInformationException
(String message, DynamicInformationException.ExceptionType type, Throwable cause) Constructs a new exception with the specified detail message and cause.DynamicInformationException
(String message, DynamicInformationException.ExceptionType type, Throwable cause, boolean silent) Constructs a new exception with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DynamicInformationException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message.type
- reason of the exception
-
DynamicInformationException
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- the cause.
-
DynamicInformationException
public DynamicInformationException(String message, DynamicInformationException.ExceptionType type, Throwable cause) Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message.type
- reason of the exceptioncause
- the cause.
-
DynamicInformationException
public DynamicInformationException(String message, DynamicInformationException.ExceptionType type, Throwable cause, boolean silent) Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message.type
- reason of the exceptioncause
- the cause.silent
- if true, indicates to not log errors
-
-
Method Details
-
getType
Get the type of exception -
isSilent
Returns true if this exception should not be logged as an error- Returns:
- true if in silent mode
-