Refactor Error.subclass to maintain stack trace

@nullstyle Does this just need to be changed to ```errorName```?