Error refractor

Error now extends Result