Added wrappers for error objects