Enum Class SimpleErrorHandling

java.lang.Object
java.lang.Enum<SimpleErrorHandling>
com.chemaxon.calculations.io.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 Constants
    Enum Constant
    Description
    Deprecated, 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 Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get a default error handler.
    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.
    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.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FAIL

      public static final SimpleErrorHandling 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 reported Exception as its cause.

    • LOG

      public static final SimpleErrorHandling 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() to System.err.

    • SILENT

      public static final SimpleErrorHandling 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

      public 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.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SimpleErrorHandling valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSuitableErrorHandler

      public abstract Consumer<Exception> 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.