lib/aws-sdk-applicationinsights/errors.rb in aws-sdk-applicationinsights-1.15.0 vs lib/aws-sdk-applicationinsights/errors.rb in aws-sdk-applicationinsights-1.16.0
- old
+ new
@@ -25,10 +25,11 @@
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
# information about the request that generated the error.
# See {Seahorse::Client::RequestContext} for more information.
#
# ## Error Classes
+ # * {AccessDeniedException}
# * {BadRequestException}
# * {InternalServerException}
# * {ResourceInUseException}
# * {ResourceNotFoundException}
# * {TagsAlreadyExistException}
@@ -38,9 +39,24 @@
# Additionally, error classes are dynamically generated for service errors based on the error code
# if they are not defined above.
module Errors
extend Aws::Errors::DynamicErrors
+
+ class AccessDeniedException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::ApplicationInsights::Types::AccessDeniedException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
class BadRequestException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message