Sha256: 96f6ad606dfd1d38a60b6751a19ba85c702ef19e56190e1ff2dec44f066098e1

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

module BugherdClient
  module Errors

    class InvalidOption < StandardError
      def initialize(msg="invalid option")
        super(msg)
      end
    end

    class UnsupportedMethod < StandardError
      def initialize(api_version="")
        super("Method supported in API version #{api_version}")
      end
    end

    class UnsupportedAttribute < StandardError
      def initialize(api_version="", attrs=[])
        super("Attributes (#{attrs.join(',')}) supported in #{api_version}")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bugherd_client-0.0.4 lib/bugherd_client/errors.rb
bugherd_client-0.0.3 lib/bugherd_client/errors.rb
bugherd_client-0.0.2 lib/bugherd_client/errors.rb