Exception: RestGraph::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RestGraph::Error
- Extended by:
- Util
- Defined in:
- lib/rest-graph/core.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Util Classes: AccessToken, InvalidAccessToken, MissingAccessToken
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(error, url = '') ⇒ Error
constructor
A new instance of Error.
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
51 52 53 |
# File 'lib/rest-graph/core.rb', line 51 def error @error end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
51 52 53 |
# File 'lib/rest-graph/core.rb', line 51 def url @url end |