sophia: introduce sp_error and object error method