Sha256: 1b0a0008df55a3514ffc2589ed564cde4f773426e256d78fcd42a4e69cab7f42

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

class Kintone::KintoneError < StandardError
  attr_reader :message_text, :id, :code, :http_status

  def initialize(messages, http_status)
    @message_text = messages['message']
    @id = messages['id']
    @code = messages['code']
    @http_status = http_status
    super(format('%s [%s] %s(%s)', @http_status, @code, @message_text, @id))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kintone-0.1.5 lib/kintone/kintone_error.rb