Sha256: 6124507d2f26bd45718df3aa2a241942e112bec1516c6e10b8442ad065096bb5

Contents?: true

Size: 1.72 KB

Versions: 5

Compression:

Stored size: 1.72 KB

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      module Errors
        class AppNotInstalledError < ScriptProjectError; end
        class AppScriptNotPushedError < ScriptProjectError; end
        class AppScriptUndefinedError < ScriptProjectError; end
        class BuildError < ScriptProjectError; end
        class DependencyInstallError < ScriptProjectError; end
        class ForbiddenError < ScriptProjectError; end
        class GraphqlError < ScriptProjectError
          attr_reader :errors
          def initialize(errors)
            @errors = errors
            super("GraphQL failed with errors: #{errors}")
          end
        end
        class ProjectCreatorNotFoundError < ScriptProjectError; end
        class ScriptRepushError < ScriptProjectError
          attr_reader :api_key
          def initialize(api_key)
            super()
            @api_key = api_key
          end
        end
        class ScriptServiceUserError < ScriptProjectError
          def initialize(query_name, errors)
            super("Failed performing #{query_name}. Errors: #{errors}.")
          end
        end
        class ShopAuthenticationError < ScriptProjectError; end
        class ShopScriptConflictError < ScriptProjectError; end
        class ShopScriptUndefinedError < ScriptProjectError; end
        class TaskRunnerNotFoundError < ScriptProjectError; end
        class PackagesOutdatedError < ScriptProjectError
          attr_reader :outdated_packages
          def initialize(outdated_packages)
            super("EP packages are outdated and need to be updated: #{outdated_packages.join(', ')}")
            @outdated_packages = outdated_packages
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shopify-cli-1.4.1 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.4.0 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.3.1 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.3.0 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.2.0 lib/project_types/script/layers/infrastructure/errors.rb