lib/aws-sdk-pricing/errors.rb in aws-sdk-pricing-1.42.0 vs lib/aws-sdk-pricing/errors.rb in aws-sdk-pricing-1.43.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}
# * {ExpiredNextTokenException}
# * {InternalErrorException}
# * {InvalidNextTokenException}
# * {InvalidParameterException}
# * {NotFoundException}
@@ -36,9 +37,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::Pricing::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 ExpiredNextTokenException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message