private mapErrorCode()

in packages/openfeature-server-provider/src/ConfidenceServerProvider.ts [51:62]


  private mapErrorCode(errorCode: FlagEvaluation.ErrorCode): ErrorCode {
    switch (errorCode) {
      case 'FLAG_NOT_FOUND':
        return ErrorCode.FLAG_NOT_FOUND;
      case 'TYPE_MISMATCH':
        return ErrorCode.TYPE_MISMATCH;
      case 'NOT_READY':
        return ErrorCode.PROVIDER_NOT_READY;
      default:
        return ErrorCode.GENERAL;
    }
  }