Exception: ApiAiWrapper::Errors::Engine::ApiError
- Defined in:
- lib/api_ai_wrapper/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, code = nil, status = nil) ⇒ ApiError
constructor
A new instance of ApiError.
Methods inherited from Error
Constructor Details
#initialize(message = nil, code = nil, status = nil) ⇒ ApiError
Returns a new instance of ApiError.
28 29 30 31 32 |
# File 'lib/api_ai_wrapper/errors.rb', line 28 def initialize( = nil, code = nil, status = nil) @message = || "An error occured in API.AI." @code = code @status = status end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
26 27 28 |
# File 'lib/api_ai_wrapper/errors.rb', line 26 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
26 27 28 |
# File 'lib/api_ai_wrapper/errors.rb', line 26 def status @status end |