Sha256: c3c39dadb67fb67ddccff8d2c111b1caf32c13afe331d8503b53787a24ce1320

Contents?: true

Size: 452 Bytes

Versions: 8

Compression:

Stored size: 452 Bytes

Contents

module Metrika
  module Errors
    class MetrikaError < StandardError
      attr_reader :data

      def initialize(data)
        @data = data
        super
      end
    end

    class UnauthorizedError      < MetrikaError; end
    class GeneralError           < MetrikaError; end
    class AccessDeniedError      < MetrikaError; end
    class NoTokenError           < StandardError; end
    class NotFoundError          < StandardError; end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metrika-0.1.2 lib/metrika/errors.rb
metrika-0.1.1 lib/metrika/errors.rb
metrika-0.1.0 lib/metrika/errors.rb
metrika-0.0.5 lib/metrika/errors.rb
metrika-0.0.4 lib/metrika/errors.rb
metrika-0.0.3 lib/metrika/errors.rb
metrika-0.0.2 lib/metrika/errors.rb
metrika-0.0.1 lib/metrika/errors.rb