Exception: MTProto::RpcError
- Defined in:
- lib/mtproto/errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(error_code, error_message) ⇒ RpcError
constructor
A new instance of RpcError.
Constructor Details
#initialize(error_code, error_message) ⇒ RpcError
Returns a new instance of RpcError.
21 22 23 24 25 |
# File 'lib/mtproto/errors.rb', line 21 def initialize(error_code, ) @error_code = error_code @error_message = super("RPC Error #{error_code}: #{}") end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
19 20 21 |
# File 'lib/mtproto/errors.rb', line 19 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
19 20 21 |
# File 'lib/mtproto/errors.rb', line 19 def @error_message end |