Sha256: 08b76338f6f78d24c84dd380a51c752b7143d7ae707eafcfdbc5e31ef053d682

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

module Zaptec
  module Errors
    class Base < StandardError; end
    class ParameterMissing < Base; end
    class Unauthorized < Base; end
    class RequestFailed < Base
      attr_reader :response

      def initialize(message, response = nil)
        @response = response
        super(message)
      end
    end
    class AuthorizationFailed < Base; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stekker_zaptec-1.2.1 lib/zaptec/errors.rb
stekker_zaptec-1.2.0 lib/zaptec/errors.rb