Sha256: 4d7a3529f3810f95a61753ff7772b0c6eda456870e7c71e4faf99c1d58b910d1

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 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
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shopify-cli-1.1.2 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.1.1 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.1.0 lib/project_types/script/layers/infrastructure/errors.rb
shopify-cli-1.0.5 lib/project_types/script/layers/infrastructure/errors.rb