Traits

Allows custom errors to be decoded back to their original enum