Class: Aws::IoTSiteWise::Errors::PreconditionFailedException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PreconditionFailedException.

Parameters:



141
142
143
# File 'lib/aws-sdk-iotsitewise/errors.rb', line 141

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

Instance Method Details

#messageString

Returns:

  • (String)


146
147
148
# File 'lib/aws-sdk-iotsitewise/errors.rb', line 146

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

#resource_arnString

Returns:

  • (String)


156
157
158
# File 'lib/aws-sdk-iotsitewise/errors.rb', line 156

def resource_arn
  @data[:resource_arn]
end

#resource_idString

Returns:

  • (String)


151
152
153
# File 'lib/aws-sdk-iotsitewise/errors.rb', line 151

def resource_id
  @data[:resource_id]
end