Localize error reporting to object methods.