# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::CodePipeline # When CodePipeline returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::CodePipeline::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all CodePipeline errors using ServiceError: # # begin # # do stuff # rescue Aws::CodePipeline::Errors::ServiceError # # rescues all CodePipeline API errors # end # # # ## Request Context # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {ActionNotFoundException} # * {ActionTypeAlreadyExistsException} # * {ActionTypeNotFoundException} # * {ApprovalAlreadyCompletedException} # * {ConcurrentModificationException} # * {ConcurrentPipelineExecutionsLimitExceededException} # * {ConflictException} # * {DuplicatedStopRequestException} # * {InvalidActionDeclarationException} # * {InvalidApprovalTokenException} # * {InvalidArnException} # * {InvalidBlockerDeclarationException} # * {InvalidClientTokenException} # * {InvalidJobException} # * {InvalidJobStateException} # * {InvalidNextTokenException} # * {InvalidNonceException} # * {InvalidStageDeclarationException} # * {InvalidStructureException} # * {InvalidTagsException} # * {InvalidWebhookAuthenticationParametersException} # * {InvalidWebhookFilterPatternException} # * {JobNotFoundException} # * {LimitExceededException} # * {NotLatestPipelineExecutionException} # * {OutputVariablesSizeExceededException} # * {PipelineExecutionNotFoundException} # * {PipelineExecutionNotStoppableException} # * {PipelineNameInUseException} # * {PipelineNotFoundException} # * {PipelineVersionNotFoundException} # * {RequestFailedException} # * {ResourceNotFoundException} # * {StageNotFoundException} # * {StageNotRetryableException} # * {TooManyTagsException} # * {ValidationException} # * {WebhookNotFoundException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors extend Aws::Errors::DynamicErrors class ActionNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ActionNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class ActionTypeAlreadyExistsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ActionTypeAlreadyExistsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class ActionTypeNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ActionTypeNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class ApprovalAlreadyCompletedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ApprovalAlreadyCompletedException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class ConcurrentModificationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ConcurrentModificationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ConcurrentPipelineExecutionsLimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ConcurrentPipelineExecutionsLimitExceededException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ConflictException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ConflictException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class DuplicatedStopRequestException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::DuplicatedStopRequestException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidActionDeclarationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidActionDeclarationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidApprovalTokenException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidApprovalTokenException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidArnException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidArnException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidBlockerDeclarationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidBlockerDeclarationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidClientTokenException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidClientTokenException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidJobException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidJobException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidJobStateException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidJobStateException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidNextTokenException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidNextTokenException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidNonceException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidNonceException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidStageDeclarationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidStageDeclarationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidStructureException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidStructureException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidTagsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidTagsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidWebhookAuthenticationParametersException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidWebhookAuthenticationParametersException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class InvalidWebhookFilterPatternException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::InvalidWebhookFilterPatternException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class JobNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::JobNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class LimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::LimitExceededException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class NotLatestPipelineExecutionException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::NotLatestPipelineExecutionException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class OutputVariablesSizeExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::OutputVariablesSizeExceededException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class PipelineExecutionNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::PipelineExecutionNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class PipelineExecutionNotStoppableException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::PipelineExecutionNotStoppableException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class PipelineNameInUseException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::PipelineNameInUseException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class PipelineNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::PipelineNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class PipelineVersionNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::PipelineVersionNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class RequestFailedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::RequestFailedException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ResourceNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class StageNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::StageNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class StageNotRetryableException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::StageNotRetryableException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class TooManyTagsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::TooManyTagsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ValidationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::ValidationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end class WebhookNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CodePipeline::Types::WebhookNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end end end