toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ErrorCode.resourceNotFoundException:
      return 'ResourceNotFoundException';
    case ErrorCode.invalidRequestException:
      return 'InvalidRequestException';
    case ErrorCode.internalFailureException:
      return 'InternalFailureException';
    case ErrorCode.serviceUnavailableException:
      return 'ServiceUnavailableException';
    case ErrorCode.throttlingException:
      return 'ThrottlingException';
  }
}