暫無描述

AWSValidation.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License").
  5. // You may not use this file except in compliance with the License.
  6. // A copy of the License is located at
  7. //
  8. // http://aws.amazon.com/apache2.0
  9. //
  10. // or in the "license" file accompanying this file. This file is distributed
  11. // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. // express or implied. See the License for the specific language governing
  13. // permissions and limitations under the License.
  14. //
  15. #import <Foundation/Foundation.h>
  16. // defined domain for errors from AWSRuntime.
  17. FOUNDATION_EXPORT NSString *const AWSValidationErrorDomain;
  18. /* NSError codes in AWSErrorDomain. */
  19. typedef NS_ENUM(NSInteger, AWSValidationErrorType) {
  20. // AWSJSON Validation related errors
  21. AWSValidationUnknownError, // Unknown Error found during JSON Validation
  22. AWSValidationUnexpectedParameter, // Unexpected Parameters found in HTTP Body
  23. AWSValidationUnhandledType,
  24. AWSValidationMissingRequiredParameter,
  25. AWSValidationOutOfRangeParameter,
  26. AWSValidationInvalidStringParameter,
  27. AWSValidationUnexpectedStringParameter,
  28. AWSValidationInvalidParameterType,
  29. AWSValidationInvalidBase64Data,
  30. AWSValidationHeaderTargetInvalid,
  31. AWSValidationHeaderAPIActionIsUndefined,
  32. AWSValidationHeaderDefinitionFileIsNotFound,
  33. AWSValidationHeaderDefinitionFileIsEmpty,
  34. AWSValidationHeaderAPIActionIsInvalid,
  35. AWSValidationURIIsInvalid
  36. };