StackValidationMode

Stack validation mode.

  • Strict: always keep the stack in a valid state. Throw an exception if the stack is transitioning to an invalid state.

  • Lenient: always keep the stack in a valid state. Do nothing if the stack is in an invalid state (keep the stack as is).

  • Warning: always keep the stack in a valid state. Log a warning if the stack is in an invalid state (keep the stack as is).

Inheritors

Types

Link copied to clipboard

Represents the lenient stack validation mode. In this mode, the stack is always kept in a valid state. If the stack transitions to an invalid state, no action is taken.

Link copied to clipboard

Represents the strict stack validation mode. In this mode, the stack is always kept in a valid state. An exception is thrown if the stack transitions to an invalid state.

Link copied to clipboard
class Warning(val logWarn: (tag: String, message: String) -> Unit) : StackValidationMode

Represents the warning stack validation mode. In this mode, the stack is always kept in a valid state. A warning is logged if the stack transitions to an invalid state.