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