Sha256: 651ed5a00feef24680559b88653f2607ea81bc6f9c8780201c0e4bba08cc6e85

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

# frozen_string_literal: true

module Script
  module Errors
    class InvalidContextError < ScriptProjectError; end
    class InvalidScriptNameError < ScriptProjectError; end

    class NoExistingAppsError < ScriptProjectError; end
    class NoExistingOrganizationsError < ScriptProjectError; end

    class NoExistingStoresError < ScriptProjectError
      attr_reader :organization_id
      def initialize(organization_id)
        super()
        @organization_id = organization_id
      end
    end

    class ScriptProjectAlreadyExistsError < ScriptProjectError; end
    class InvalidConfigProps < ScriptProjectError; end

    class InvalidConfigYAMLError < ScriptProjectError
      attr_reader :config_file
      def initialize(config_file)
        super()
        @config_file = config_file
      end
    end

    class InvalidLanguageError < ScriptProjectError
      attr_reader :language, :extension_point_type
      def initialize(language, extension_point_type)
        super()
        @language = language
        @extension_point_type = extension_point_type
      end
    end

    class DeprecatedEPError < ScriptProjectError
      attr_reader :ep
      def initialize(ep)
        super()
        @ep = ep
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shopify-cli-1.8.0 lib/project_types/script/errors.rb
shopify-cli-1.7.1 lib/project_types/script/errors.rb