Class: Aws::BackupGateway::Errors::ValidationException
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::BackupGateway::Errors::ValidationException
- Defined in:
- gems/aws-sdk-backupgateway/lib/aws-sdk-backupgateway/errors.rb
Instance Method Summary collapse
-
#error_code ⇒ String
-
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ ValidationException
constructor
A new instance of ValidationException.
-
#message ⇒ String
Constructor Details
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ ValidationException
Returns a new instance of ValidationException.
148 149 150 |
# File 'gems/aws-sdk-backupgateway/lib/aws-sdk-backupgateway/errors.rb', line 148 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#error_code ⇒ String
153 154 155 |
# File 'gems/aws-sdk-backupgateway/lib/aws-sdk-backupgateway/errors.rb', line 153 def error_code @data[:error_code] end |
#message ⇒ String
158 159 160 |
# File 'gems/aws-sdk-backupgateway/lib/aws-sdk-backupgateway/errors.rb', line 158 def @message || @data[:message] end |