Exception: Teams::GraphError
- Defined in:
- lib/teams/errors.rb
Overview
A failed Microsoft Graph request; code carries the Graph error code (e.g. "Authorization_RequestDenied") and body the full error payload.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, code: nil, body: nil) ⇒ GraphError
constructor
A new instance of GraphError.
Constructor Details
#initialize(message, status:, code: nil, body: nil) ⇒ GraphError
Returns a new instance of GraphError.
31 32 33 34 35 36 |
# File 'lib/teams/errors.rb', line 31 def initialize(, status:, code: nil, body: nil) super() @status = status @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
29 30 31 |
# File 'lib/teams/errors.rb', line 29 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
29 30 31 |
# File 'lib/teams/errors.rb', line 29 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
29 30 31 |
# File 'lib/teams/errors.rb', line 29 def status @status end |