#Remove error from error set

1 messages · Page 1 of 1 (latest)

silent snow
#

Is there a way I can create a new error set from another error set which excludes a certain error that I have checked for?

snow otter
#

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