Class ConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.espirit.firstspirit.access.store.templatestore.gom.ConfigurationException
- All Implemented Interfaces:
Serializable
Thrown if a configuration is incorrect.
- Since:
- 5.2.25
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationException(@NotNull String message, @NotNull String errorCode) Creates a new instance with the specified message and error code -
Method Summary
Modifier and TypeMethodDescriptionGet the defined context, if any.@Nullable StringProvides a detail fragment for locating the error.@NotNull StringProvides the FS error code.voidputContext(@NotNull String key, @NotNull String value) Put a context value at the given key.voidSets the detail fragment.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigurationException
Creates a new instance with the specified message and error code- Parameters:
message- the message of the exceptionerrorCode- the FS error code- Since:
- 5.2.25
-
-
Method Details
-
getErrorCode
Provides the FS error code.- Returns:
- The FS error code.
- Since:
- 5.2.25
-
getDetail
Provides a detail fragment for locating the error.- Returns:
- A detail fragment or
null. - Since:
- 5.2.25
-
setDetail
Sets the detail fragment.- Parameters:
detail- The detail fragment.- Since:
- 5.2.25
-
getContext
Get the defined context, if any.- Returns:
- The context or
null. - Since:
- 5.2.25
-
putContext
Put a context value at the given key.- Parameters:
key- The contextual key.value- The contextual value.- Since:
- 5.2.25
-