Class: Aws::ConnectCampaignsV2::Errors::InvalidStateException

Inherits:
ServiceError
  • Object
show all
Defined in:
lib/aws-sdk-connectcampaignsv2/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ InvalidStateException

Returns a new instance of InvalidStateException.

Parameters:



140
141
142
# File 'lib/aws-sdk-connectcampaignsv2/errors.rb', line 140

def initialize(context, message, data = Aws::EmptyStructure.new)
  super(context, message, data)
end

Instance Method Details

#messageString

Returns:

  • (String)


145
146
147
# File 'lib/aws-sdk-connectcampaignsv2/errors.rb', line 145

def message
  @message || @data[:message]
end

#x_amz_error_typeString

Returns:

  • (String)


150
151
152
# File 'lib/aws-sdk-connectcampaignsv2/errors.rb', line 150

def x_amz_error_type
  @data[:x_amz_error_type]
end