var n=class extends Error{stdout;stderr;observations;constructor(s,t="",e="",o){super(s),this.stdout=t,this.stderr=e,this.observations=o}prependOutput(s,t){this.stdout=s+this.stdout,this.stderr=t+this.stderr}},a=class extends n{levels;name="BreakError";constructor(s=1,t="",e=""){super("break",t,e),this.levels=s}},c=class extends n{levels;name="ContinueError";constructor(s=1,t="",e=""){super("continue",t,e),this.levels=s}},u=class extends n{exitCode;name="ReturnError";constructor(s=0,t="",e=""){super("return",t,e),this.exitCode=s}},x=class extends n{exitCode;observations;name="ErrexitError";constructor(s,t="",e="",o){super(`errexit: command exited with status ${s}`,t,e,o),this.exitCode=s,this.observations=o}},h=class extends n{varName;name="NounsetError";constructor(s,t=""){super(`${s}: unbound variable`,t,`bash: ${s}: unbound variable
`),this.varName=s}},d=class extends n{exitCode;observations;name="ExitError";constructor(s,t="",e="",o){super("exit",t,e,o),this.exitCode=s,this.observations=o}},p=class extends n{observations;name="ArithmeticError";fatal;constructor(s,t="",e="",o=!1,i){super(s,t,e,i),this.observations=i,this.stderr=e||`bash: ${s}
`,this.fatal=o}},l=class extends n{observations;name="BadSubstitutionError";constructor(s,t="",e="",o){super(s,t,e,o),this.observations=o,this.stderr=e||`bash: ${s}: bad substitution
`}},b=class extends n{observations;name="GlobError";constructor(s,t="",e="",o){super(`no match: ${s}`,t,e,o),this.observations=o,this.stderr=e||`bash: no match: ${s}
`}},m=class extends n{observations;name="BraceExpansionError";constructor(s,t="",e="",o){super(s,t,e,o),this.observations=o,this.stderr=e||`bash: ${s}
`}},v=class extends n{limitType;observations;name="ExecutionLimitError";static EXIT_CODE=126;constructor(s,t,e="",o="",i){super(s,e,o,i),this.limitType=t,this.observations=i,this.stderr=o||`bash: ${s}
`}},$=class extends n{name="ExecutionAbortedError";constructor(s="",t=""){super("execution aborted",s,t)}},f=class extends n{name="SubshellExitError";constructor(s="",t=""){super("subshell exit",s,t)}};function E(r){return r instanceof a||r instanceof c||r instanceof u}var C=class extends n{exitCode;name="PosixFatalError";constructor(s,t="",e=""){super("posix fatal error",t,e),this.exitCode=s}};export{a,c as b,u as c,x as d,h as e,d as f,p as g,l as h,b as i,m as j,v as k,$ as l,f as m,E as n,C as o};
