Exception: SDM::RPCError
- Inherits:
-
StandardError
- Object
- StandardError
- SDM::RPCError
- Defined in:
- lib/errors/errors.rb
Overview
RPCError is a generic RPC error
Direct Known Subclasses
AlreadyExistsError, AuthenticationError, BadRequestError, DeadlineExceededError, InternalError, NotFoundError, PermissionError, RateLimitError, UnknownError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ RPCError
constructor
A new instance of RPCError.
Constructor Details
#initialize(msg, code) ⇒ RPCError
Returns a new instance of RPCError.
23 24 25 26 |
# File 'lib/errors/errors.rb', line 23 def initialize(msg, code) @code = code super(msg) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
21 22 23 |
# File 'lib/errors/errors.rb', line 21 def code @code end |