Package com.chemaxon.calculations.io
Enum Class SimpleErrorHandling
- All Implemented Interfaces:
Serializable
,Comparable<SimpleErrorHandling>
,java.lang.constant.Constable
@PublicAPI
@Beta
@Deprecated(forRemoval=true)
@SubjectToRemoval(date=JAN_01_2025)
public enum SimpleErrorHandling
extends Enum<SimpleErrorHandling>
Deprecated, for removal: This API element is subject to removal in a future version.
Will be removed without replacement.
Error handling preference.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Fail in case of an input related error.Deprecated, for removal: This API element is subject to removal in a future version.Note and log error but try to continue.Deprecated, for removal: This API element is subject to removal in a future version.Continue in case of error. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Get a default error handler.static SimpleErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static SimpleErrorHandling[]
values()
Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAIL
Deprecated, for removal: This API element is subject to removal in a future version.Fail in case of an input related error.Failure is ensured by throwing a new
IllegalStateException
with the reportedException
as its cause. -
LOG
Deprecated, for removal: This API element is subject to removal in a future version.Note and log error but try to continue.Logging is done by writing the
Throwable.getMessage()
toSystem.err
. -
SILENT
Deprecated, for removal: This API element is subject to removal in a future version.Continue in case of error.Doing nothing when an
Exception
is reported.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSuitableErrorHandler
Deprecated, for removal: This API element is subject to removal in a future version.Get a default error handler.- Returns:
- An error handler suitable for the represented behavior.
-