Class: TD::Types::Error

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/error.rb

Overview

An object of this type can be returned on every function call, in case of an error.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#codeInteger

Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user.

Returns:

  • (Integer)

    the current value of code



8
9
10
# File 'lib/tdlib/types/error.rb', line 8

def code
  @code
end

#messageString

Error message; subject to future changes.

Returns:

  • (String)

    the current value of message



8
9
10
# File 'lib/tdlib/types/error.rb', line 8

def message
  @message
end