errorRules top-level constant
Genau eine Regel je Art, der Stand von 1.0.0-rc.4; siehe findErrorRule.
Implementation
const List<ErrorRule> errorRules = [
ErrorRule(kind: ErrorKind.api, behavior: ErrorRuleBehavior.serverText),
ErrorRule(kind: ErrorKind.plainText, behavior: ErrorRuleBehavior.ownText),
ErrorRule(kind: ErrorKind.timeout, key: 'network.timeout'),
ErrorRule(kind: ErrorKind.network, key: 'network.no_connection'),
ErrorRule(kind: ErrorKind.unexpected, key: 'server.unexpected'),
ErrorRule(kind: ErrorKind.other, behavior: ErrorRuleBehavior.fallback),
];