def AaError.name
bend-osdev-apparmor@0.1.0.0 · error.bend:67
import bend-osdev-apparmor@0.1.0.0/error.bend as Error
import Base
67def AaError.name(e: AaError) -> String:
68 match e:
69 case AaErrLex{f, l}:
70 "lex"
71 case AaErrSyntax{f, l}:
72 "syntax"
73 case AaErrGlob{f, l}:
74 "glob"
75 case AaErrName{f, l}:
76 "name"
77 case AaErrPerms{f, l}:
78 "perms"
79 case AaErrUnsupported{f, l}:
80 "unsupported"
81 case AaErrInclude{f, l}:
82 "include"
83 case AaErrIncludeDepth{f, l}:
84 "include-depth"
85 case AaErrVarUndefined{f, l}:
86 "var-undefined"
87 case AaErrVarRedefined{f, l}:
88 "var-redefined"
89 case AaErrPreamble{f, l}:
90 "preamble"
91 case AaErrFlag{f, l}:
92 "flag"
93 case AaErrDuplicate{f, l}:
94 "duplicate"
95 case AaErrExecConflict{f, l}:
96 "exec-conflict"