toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case HandlerErrorCode.notUpdatable:
      return 'NotUpdatable';
    case HandlerErrorCode.invalidRequest:
      return 'InvalidRequest';
    case HandlerErrorCode.accessDenied:
      return 'AccessDenied';
    case HandlerErrorCode.invalidCredentials:
      return 'InvalidCredentials';
    case HandlerErrorCode.alreadyExists:
      return 'AlreadyExists';
    case HandlerErrorCode.notFound:
      return 'NotFound';
    case HandlerErrorCode.resourceConflict:
      return 'ResourceConflict';
    case HandlerErrorCode.throttling:
      return 'Throttling';
    case HandlerErrorCode.serviceLimitExceeded:
      return 'ServiceLimitExceeded';
    case HandlerErrorCode.notStabilized:
      return 'NotStabilized';
    case HandlerErrorCode.generalServiceException:
      return 'GeneralServiceException';
    case HandlerErrorCode.serviceInternalError:
      return 'ServiceInternalError';
    case HandlerErrorCode.networkFailure:
      return 'NetworkFailure';
    case HandlerErrorCode.internalFailure:
      return 'InternalFailure';
  }
}