#Remove error from error set
1 messages · Page 1 of 1 (latest)
if you use a switch, that’s done for you if you do something like
switch (err) {
error.foo => { … },
error.bar => { … },
else => |e| { … },
}
e will be of type @typeOf(err) but without the error.foo and error.bar variants
otherwise, im not sure
but remember you can always specify error sets yourself, that’s probably the easiest
and you could use comptime to generate a new error union based on another one so you could definitely play around with that