Class: Aws::Schemas::Errors::UnauthorizedException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of UnauthorizedException.

Parameters:



232
233
234
# File 'gems/aws-sdk-schemas/lib/aws-sdk-schemas/errors.rb', line 232

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

Instance Method Details

#codeString

Returns:

  • (String)


237
238
239
# File 'gems/aws-sdk-schemas/lib/aws-sdk-schemas/errors.rb', line 237

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

#messageString

Returns:

  • (String)


242
243
244
# File 'gems/aws-sdk-schemas/lib/aws-sdk-schemas/errors.rb', line 242

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