Sha256: 12994dc556e77d8def3afa995f1320c58942b3abbd41d99c97c408b31eb266f0

Contents?: true

Size: 1.17 KB

Versions: 22

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Domain
      module Errors
        class PushPackageNotFoundError < ScriptProjectError; end

        class InvalidExtensionPointError < ScriptProjectError
          attr_reader :type
          def initialize(type)
            super()
            @type = type
          end
        end

        class MissingScriptConfigFieldError < ScriptProjectError
          attr_reader :field, :filename
          def initialize(field:, filename:)
            super()
            @field = field
            @filename = filename
          end
        end

        class ScriptNotFoundError < ScriptProjectError
          attr_reader :title, :extension_point_type
          def initialize(extension_point_type, title)
            super()
            @title = title
            @extension_point_type = extension_point_type
          end
        end

        class MetadataNotFoundError < ScriptProjectError
          attr_reader :filename
          def initialize(filename)
            super()
            @filename = filename
          end
        end

        class MetadataValidationError < ScriptProjectError; end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shopify-cli-2.14.0 lib/project_types/script/layers/domain/errors.rb
shopify-cli-2.13.0 lib/project_types/script/layers/domain/errors.rb