Sha256: e1e3d911042ca6320672c6c6be3eb2dd69c938e13c5a66d8bb278607a9ccce2c

Contents?: true

Size: 763 Bytes

Versions: 10

Compression:

Stored size: 763 Bytes

Contents

# frozen_string_literal: true

module MetalArchives
  ##
  # MetalArchives gem specific errors
  #
  module Errors
    ##
    # Generic error
    #
    class Error < StandardError; end

    ##
    # No or invalid ID
    #
    class InvalidIDError < Error; end

    ##
    # No or invalid configuration
    #
    class InvalidConfigurationError < Error; end

    ##
    # Error parsing value
    #
    class ParserError < Error; end

    ##
    # Functionality not implemented (yet)
    class NotImplementedError < Error; end

    ##
    # Error in backend response
    #
    class APIError < Error; end

    ##
    # Error in method argument
    #
    class ArgumentError < Error; end

    ##
    # Incorrect type
    #
    class TypeError < Error; end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
metal_archives-3.0.1 lib/metal_archives/errors.rb
metal_archives-3.0.0 lib/metal_archives/errors.rb
metal_archives-2.2.3 lib/metal_archives/errors.rb
metal_archives-2.2.0 lib/metal_archives/error.rb
metal_archives-2.1.1 lib/metal_archives/error.rb
metal_archives-2.1.0 lib/metal_archives/error.rb
metal_archives-2.0.2 lib/metal_archives/error.rb
metal_archives-2.0.1 lib/metal_archives/error.rb
metal_archives-2.0.0 lib/metal_archives/error.rb
metal_archives-1.0.0 lib/metal_archives/error.rb