Class: Aws::RecycleBin::Errors::ValidationException
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::RecycleBin::Errors::ValidationException
- Defined in:
- gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/errors.rb
Instance Method Summary collapse
-
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ ValidationException
constructor
A new instance of ValidationException.
-
#message ⇒ String
-
#reason ⇒ String
Constructor Details
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ ValidationException
Returns a new instance of ValidationException.
122 123 124 |
# File 'gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/errors.rb', line 122 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#message ⇒ String
127 128 129 |
# File 'gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/errors.rb', line 127 def @message || @data[:message] end |
#reason ⇒ String
132 133 134 |
# File 'gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/errors.rb', line 132 def reason @data[:reason] end |