class TD::Error
Proxy class that is used in failed promises to represent TDlib errors
Public Class Methods
new(td_error)
click to toggle source
# File lib/tdlib/errors.rb, line 10 def initialize(td_error) @td_error = td_error end
Public Instance Methods
message()
click to toggle source
# File lib/tdlib/errors.rb, line 26 def message @td_error.message end
method_missing(method, *args)
click to toggle source
# File lib/tdlib/errors.rb, line 14 def method_missing(method, *args) @td_error.public_send(method, *args) end
respond_to_missing?(*args)
click to toggle source
# File lib/tdlib/errors.rb, line 18 def respond_to_missing?(*args) @td_error.respond_to?(*args) end
to_s()
click to toggle source
# File lib/tdlib/errors.rb, line 22 def to_s @td_error.inspect end
Also aliased as: inspect