Exception: KijiRest::Client::KijiRestClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kijirest/client.rb

Overview

Error class that wraps exceptions thrown by the server

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_error) ⇒ KijiRestClientError

Returns a new instance of KijiRestClientError.



36
37
38
# File 'lib/kijirest/client.rb', line 36

def initialize(json_error)
  @json_error_message =  json_error
end

Instance Attribute Details

#json_error_messageObject (readonly)

Returns the value of attribute json_error_message.



35
36
37
# File 'lib/kijirest/client.rb', line 35

def json_error_message
  @json_error_message
end

Instance Method Details

#to_sObject



40
41
42
# File 'lib/kijirest/client.rb', line 40

def to_s
  json_error_message.to_json
end