Exception: Sharepoint::SPException
- Inherits:
-
Exception
- Object
- Exception
- Sharepoint::SPException
- Defined in:
- lib/sharepoint-ruby.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(data, uri = nil, body = nil) ⇒ SPException
constructor
A new instance of SPException.
- #lang ⇒ Object
- #message ⇒ Object
- #request_body ⇒ Object
- #uri ⇒ Object
Constructor Details
#initialize(data, uri = nil, body = nil) ⇒ SPException
Returns a new instance of SPException.
9 10 11 12 13 |
# File 'lib/sharepoint-ruby.rb', line 9 def initialize data, uri = nil, body = nil @data = data['error'] @uri = uri @body = body end |
Instance Method Details
#code ⇒ Object
17 |
# File 'lib/sharepoint-ruby.rb', line 17 def code ; @data['code'] ; end |
#lang ⇒ Object
15 |
# File 'lib/sharepoint-ruby.rb', line 15 def lang ; @data['message']['lang'] ; end |
#message ⇒ Object
16 |
# File 'lib/sharepoint-ruby.rb', line 16 def ; @data['message']['value'] ; end |
#request_body ⇒ Object
19 |
# File 'lib/sharepoint-ruby.rb', line 19 def request_body ; @body ; end |
#uri ⇒ Object
18 |
# File 'lib/sharepoint-ruby.rb', line 18 def uri ; @uri ; end |