Sha256: 20f651fddbf6d4725f4da70fc808d2b2a40486bd4668b64cf5c6ff62c65f9519

Contents?: true

Size: 704 Bytes

Versions: 29

Compression:

Stored size: 704 Bytes

Contents

# frozen_string_literal: true

module Dor
  class Exception < ::StandardError; end
  class ParameterError < RuntimeError; end

  # Raised when the data does not conform to expectations
  class DataError < RuntimeError; end

  # Raised when trying to open a version that is already open
  # rubocop:disable Lint/InheritException
  # See https://github.com/rubocop-hq/rubocop/issues/6770
  class VersionAlreadyOpenError < Exception; end

  # Raised when we can't get a response from the catalog
  class BadResponseFromCatalog < Exception; end
  # rubocop:enable Lint/InheritException

  class DuplicateIdError < RuntimeError
    attr_reader :pid

    def initialize(pid)
      @pid = pid
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dor-services-9.6.2 lib/dor/exceptions.rb
dor-services-9.6.1 lib/dor/exceptions.rb
dor-services-9.6.0 lib/dor/exceptions.rb
dor-services-9.5.0 lib/dor/exceptions.rb
dor-services-9.4.0 lib/dor/exceptions.rb
dor-services-9.3.0 lib/dor/exceptions.rb
dor-services-9.2.1 lib/dor/exceptions.rb
dor-services-9.2.0 lib/dor/exceptions.rb
dor-services-9.1.0 lib/dor/exceptions.rb
dor-services-9.0.0 lib/dor/exceptions.rb
dor-services-8.6.0 lib/dor/exceptions.rb
dor-services-8.5.0 lib/dor/exceptions.rb
dor-services-8.4.0 lib/dor/exceptions.rb
dor-services-8.3.0 lib/dor/exceptions.rb
dor-services-8.2.0 lib/dor/exceptions.rb
dor-services-8.1.1 lib/dor/exceptions.rb
dor-services-8.1.0 lib/dor/exceptions.rb
dor-services-8.0.0 lib/dor/exceptions.rb
dor-services-7.2.4 lib/dor/exceptions.rb
dor-services-7.2.3 lib/dor/exceptions.rb