errorCodeRules top-level constant
Regeln je Code, vor der Regel der Art; siehe findErrorRule.
Implementation
const List<ErrorRule> errorCodeRules = [
ErrorRule(kind: ErrorKind.api, codes: ['dialect_mismatch', 'response_translation_failed', 'response_unreadable'], key: 'server.response_unreadable'),
ErrorRule(kind: ErrorKind.api, codes: ['route_missing', 'not_found', 'internal_translation_error'], key: 'server.connection_disturbed'),
ErrorRule(kind: ErrorKind.api, codes: ['shift_not_open'], key: 'shift.required'),
ErrorRule(kind: ErrorKind.api, codes: ['shift_already_open'], key: 'shift.already_open'),
ErrorRule(kind: ErrorKind.api, codes: ['shift_closed'], key: 'shift.already_closed'),
ErrorRule(kind: ErrorKind.api, codes: ['comment_required'], key: 'shift.comment_required'),
ErrorRule(kind: ErrorKind.api, codes: ['recount_exhausted'], key: 'shift.recount_exhausted'),
ErrorRule(kind: ErrorKind.api, codes: ['shift_mode_off'], key: 'shift.mode_off'),
ErrorRule(kind: ErrorKind.api, codes: ['cash_movement_exceeds_balance'], key: 'cash_movement.exceeds_balance'),
ErrorRule(kind: ErrorKind.api, codes: ['note_required'], key: 'cash_movement.note_required'),
ErrorRule(kind: ErrorKind.api, codes: ['invalid_movement_type'], key: 'cash_movement.type_invalid'),
ErrorRule(kind: ErrorKind.api, codes: ['transfer_same_drawer'], key: 'cash_movement.same_drawer'),
ErrorRule(kind: ErrorKind.api, codes: ['tip_payout_exceeds_claim'], key: 'tip_payout.exceeds_claim'),
ErrorRule(kind: ErrorKind.api, codes: ['invalid_denominations'], key: 'denominations.invalid'),
ErrorRule(kind: ErrorKind.api, codes: ['invalid_amount'], key: 'amount.invalid'),
ErrorRule(kind: ErrorKind.api, codes: ['drawer_not_found'], key: 'drawer.not_found'),
ErrorRule(kind: ErrorKind.api, codes: ['drawer_inactive'], key: 'drawer.inactive'),
];