Sha256: 2354dc7ec4d124395b341e266835c2914a1e339f880ef721ec65f3232e049a0e
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
# frozen_string_literal: true module Kentaa module Api class Exception < StandardError end class RequestError < Kentaa::Api::Exception attr_accessor :response def initialize(response) @response = response super(response.message) end def http_code response.http_code end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kentaa-api-0.3.2 | lib/kentaa/api/exception.rb |
kentaa-api-0.3.1 | lib/kentaa/api/exception.rb |