def body
      message = if self.class.expose_backtrace?
        {
          message: @error.message,
          backtrace: @error.backtrace
        }
      else
        { message: @error.message }
      end
      { error: message }
    end
def body
      message = if self.class.expose_backtrace?
        {
          message: @error.message,
          backtrace: @error.backtrace
        }
      else
        { message: @error.message }
      end
      { error: message }
    end
Public: create a new ErrorWrapper from an error object.
 Public: the error details as a hash, which can be returned
 to clients as JSON.