Sha256: d564155474bf0a0ce44c25a3952c1dba9ba5ff4d4ae2538381d4d15f444499af

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

module Fakturownia
  class APIException < Exception
    attr_reader :code, :body

    def initialize(body, code)
      @code = code
      @body = body
    end

    def inspect
      [code, body].join(" - ")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fakturownia_api-0.0.2 lib/fakturownia/errors.rb
fakturownia_api-0.0.1 lib/fakturownia/errors.rb