Class: Aws::Glacier::Errors::PolicyEnforcedException
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::Glacier::Errors::PolicyEnforcedException
- Defined in:
- lib/aws-sdk-glacier/errors.rb
Instance Method Summary collapse
- #code ⇒ String
-
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ PolicyEnforcedException
constructor
A new instance of PolicyEnforcedException.
- #message ⇒ String
- #type ⇒ String
Constructor Details
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ PolicyEnforcedException
Returns a new instance of PolicyEnforcedException.
150 151 152 |
# File 'lib/aws-sdk-glacier/errors.rb', line 150 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#code ⇒ String
160 161 162 |
# File 'lib/aws-sdk-glacier/errors.rb', line 160 def code @code || @data[:code] end |
#message ⇒ String
165 166 167 |
# File 'lib/aws-sdk-glacier/errors.rb', line 165 def @message || @data[:message] end |
#type ⇒ String
155 156 157 |
# File 'lib/aws-sdk-glacier/errors.rb', line 155 def type @data[:type] end |