This exists because Webpack creates a whole new copy of this class, except when you're
comparing types in memory (eg. exception instanceof ValidationError) where exception is
a transpiled instance of this class, and ValidationError is imported via non-transpiled
methods (TypeScript). We need a way to check if either are instanceof ValidationError
This exists because Webpack creates a whole new copy of this class, except when you're comparing types in memory (eg. exception instanceof ValidationError) where exception is a transpiled instance of this class, and ValidationError is imported via non-transpiled methods (TypeScript). We need a way to check if either are instanceof ValidationError