Method: ApiAi::Error#error
- Defined in:
-
lib/api_ai/error.rb,
lib/api_ai/error.rb
Returns the name of the error.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/api_ai/error.rb', line 10 class Error < RuntimeError attr_accessor :http_response, :error def initialize(error, http_response = nil) @error = error @http_response = http_response end # String representation # @return [String] def to_s "#{error}" end end |