Skip to content

Commit

Permalink
Add missing ValidationException for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFossAWS committed Mar 27, 2024
1 parent 45be8c5 commit 2757760
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Services/AWSAccount/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,11 @@ extension TooManyRequestsExceptionBody: Swift.Decodable {
}
}

extension ValidationException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"ValidationException(fieldList: \(Swift.String(describing: properties.fieldList)), reason: \(Swift.String(describing: properties.reason)), message: \"CONTENT_REDACTED\")"}
}

extension ValidationException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down
35 changes: 35 additions & 0 deletions Sources/Services/AWSProton/models/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ enum AcceptEnvironmentAccountConnectionOutputError: ClientRuntime.HttpResponseEr
}
}

extension AccessDeniedException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"AccessDeniedException(message: \"CONTENT_REDACTED\")"}
}

extension AccessDeniedException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down Expand Up @@ -1275,6 +1280,11 @@ extension ProtonClientTypes {

}

extension ConflictException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"ConflictException(message: \"CONTENT_REDACTED\")"}
}

extension ConflictException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down Expand Up @@ -9422,6 +9432,11 @@ enum GetTemplateSyncStatusOutputError: ClientRuntime.HttpResponseErrorBinding {
}
}

extension InternalServerException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"InternalServerException(message: \"CONTENT_REDACTED\")"}
}

extension InternalServerException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down Expand Up @@ -13908,6 +13923,11 @@ extension ProtonClientTypes {
}
}

extension ResourceNotFoundException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"ResourceNotFoundException(message: \"CONTENT_REDACTED\")"}
}

extension ResourceNotFoundException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down Expand Up @@ -15200,6 +15220,11 @@ extension ProtonClientTypes {

}

extension ServiceQuotaExceededException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"ServiceQuotaExceededException(message: \"CONTENT_REDACTED\")"}
}

extension ServiceQuotaExceededException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down Expand Up @@ -16755,6 +16780,11 @@ extension ProtonClientTypes {
}
}

extension ThrottlingException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"ThrottlingException(message: \"CONTENT_REDACTED\")"}
}

extension ThrottlingException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down Expand Up @@ -19202,6 +19232,11 @@ enum UpdateTemplateSyncConfigOutputError: ClientRuntime.HttpResponseErrorBinding
}
}

extension ValidationException: Swift.CustomDebugStringConvertible {
public var debugDescription: Swift.String {
"ValidationException(message: \"CONTENT_REDACTED\")"}
}

extension ValidationException {
public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) async throws {
if let data = try await httpResponse.body.readData(),
Expand Down

0 comments on commit 2757760

Please sign in to comment.