Sha256: 90ea28bf2e98cb2334522ad6f37ffaa963c8c4caa326b2cd956aa578211ffae5

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      module Errors
        class AppNotInstalledError < 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)
            @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
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shopify-cli-1.0.2 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.0.1 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.0.0 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-0.9.3 lib/project_types/script/layers/infrastructure/errors.rb