Enum RecoveryPolicy

java.lang.Object
java.lang.Enum<RecoveryPolicy>
net.sf.saxon.trans.RecoveryPolicy
All Implemented Interfaces:
Serializable, Comparable<RecoveryPolicy>, java.lang.constant.Constable

public enum RecoveryPolicy extends Enum<RecoveryPolicy>
  • Enum Constant Details

    • RECOVER_SILENTLY

      public static final RecoveryPolicy RECOVER_SILENTLY
      Constant indicating that the processor should take the recovery action when a recoverable error occurs, with no warning message.
    • RECOVER_WITH_WARNINGS

      public static final RecoveryPolicy RECOVER_WITH_WARNINGS
      Constant indicating that the processor should produce a warning when a recoverable error occurs, and should then take the recovery action and continue.
    • DO_NOT_RECOVER

      public static final RecoveryPolicy DO_NOT_RECOVER
      Constant indicating that when a recoverable error occurs, the processor should not attempt to take the defined recovery action, but should terminate with an error.
  • Method Details

    • values

      public static RecoveryPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RecoveryPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static RecoveryPolicy fromString(String s)