isTerminalCode static method

bool isTerminalCode(
  1. String code
)

Whether code is a refusal a client cannot recover from.

The recoverable codes travel on the same ErrorMessage; the terminal ones are listed in Protocol.terminalErrors.

Implementation

static bool isTerminalCode(String code) =>
    Protocol.terminalErrors.contains(code);