Workaround for subclassing errors. Both instanceof and stack are functional.