lib/aws-sdk-transfer/errors.rb in aws-sdk-transfer-1.17.0 vs lib/aws-sdk-transfer/errors.rb in aws-sdk-transfer-1.18.0
- old
+ new
@@ -23,10 +23,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}
# * {ConflictException}
# * {InternalServiceError}
# * {InvalidNextTokenException}
# * {InvalidRequestException}
# * {ResourceExistsException}
@@ -37,9 +38,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::Transfer::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 ConflictException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message