Class: Aws::EFS::Errors::PolicyNotFound

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PolicyNotFound.

Parameters:



504
505
506
# File 'gems/aws-sdk-efs/lib/aws-sdk-efs/errors.rb', line 504

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

Instance Method Details

#error_codeString

Returns:

  • (String)


509
510
511
# File 'gems/aws-sdk-efs/lib/aws-sdk-efs/errors.rb', line 509

def error_code
  @data[:error_code]
end

#messageString

Returns:

  • (String)


514
515
516
# File 'gems/aws-sdk-efs/lib/aws-sdk-efs/errors.rb', line 514

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