Class: X::MissingClient
- Inherits:
-
Objects::Error
- Object
- Error
- Objects::Error
- X::MissingClient
- Defined in:
- x-objects/lib/x/objects/errors.rb
Overview
Raised when a resource that holds no client is asked for what only a request can answer
A resource built without a client, such as one Marshal read back, or one built with from_id and no client, holds its attributes, which it reads as any resource does, but cannot hydrate, refresh, page a collection, or act, since each of them is a request, and the client is what makes it. Build the resource with the client: of from_id, or look it up again with a client.