Exception: RestGraph::Error

Inherits:
RuntimeError
  • Object
show all
Extended by:
Util
Defined in:
lib/rest-graph/core.rb

Direct Known Subclasses

AccessToken

Defined Under Namespace

Modules: Util Classes: AccessToken, InvalidAccessToken, MissingAccessToken

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

invalid_token?, missing_token?, parse

Constructor Details

#initialize(error, url = '') ⇒ Error

Returns a new instance of Error.



52
53
54
55
# File 'lib/rest-graph/core.rb', line 52

def initialize error, url=''
  @error, @url = error, url
  super("#{error.inspect} from #{url}")
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



51
52
53
# File 'lib/rest-graph/core.rb', line 51

def error
  @error
end

#urlObject (readonly)

Returns the value of attribute url.



51
52
53
# File 'lib/rest-graph/core.rb', line 51

def url
  @url
end