24 references to TraceExceptionAsReturnValue
System.Data.Common (24)
System\Data\DataException.cs (20)
338internal static Exception _Argument(string error) => TraceExceptionAsReturnValue(new ArgumentException(error)); 339internal static Exception _Argument(string error, Exception? innerException) => TraceExceptionAsReturnValue(new ArgumentException(error, innerException)); 340private static Exception _ArgumentNull(string paramName, string msg) => TraceExceptionAsReturnValue(new ArgumentNullException(paramName, msg)); 341internal static Exception _ArgumentOutOfRange(string paramName, string msg) => TraceExceptionAsReturnValue(new ArgumentOutOfRangeException(paramName, msg)); 342private static Exception _IndexOutOfRange(string error) => TraceExceptionAsReturnValue(new IndexOutOfRangeException(error)); 343private static Exception _InvalidOperation(string error) => TraceExceptionAsReturnValue(new InvalidOperationException(error)); 344private static Exception _InvalidEnumArgumentException(string error) => TraceExceptionAsReturnValue(new InvalidEnumArgumentException(error)); 354throw TraceExceptionAsReturnValue(new DataException(error, innerException)); 357private static Exception _Data(string error) => TraceExceptionAsReturnValue(new DataException(error)); 358private static Exception _Constraint(string error) => TraceExceptionAsReturnValue(new ConstraintException(error)); 359private static Exception _InvalidConstraint(string error) => TraceExceptionAsReturnValue(new InvalidConstraintException(error)); 360private static Exception _DeletedRowInaccessible(string error) => TraceExceptionAsReturnValue(new DeletedRowInaccessibleException(error)); 361private static Exception _DuplicateName(string error) => TraceExceptionAsReturnValue(new DuplicateNameException(error)); 362private static Exception _InRowChangingEvent(string error) => TraceExceptionAsReturnValue(new InRowChangingEventException(error)); 363private static Exception _MissingPrimaryKey(string error) => TraceExceptionAsReturnValue(new MissingPrimaryKeyException(error)); 364private static Exception _NoNullAllowed(string error) => TraceExceptionAsReturnValue(new NoNullAllowedException(error)); 366private static Exception _ReadOnly(string error) => TraceExceptionAsReturnValue(new ReadOnlyException(error)); 367private static Exception _RowNotInTable(string error) => TraceExceptionAsReturnValue(new RowNotInTableException(error)); 368private static Exception _VersionNotFound(string error) => TraceExceptionAsReturnValue(new VersionNotFoundException(error)); 373public static Exception ArgumentContainsNull(string paramName) => TraceExceptionAsReturnValue(new ArgumentException(SR.Data_ArgumentContainsNull, paramName));
System\Data\Filter\FilterException.cs (4)
67ExceptionBuilder.TraceExceptionAsReturnValue(e); 73ExceptionBuilder.TraceExceptionAsReturnValue(e); 79ExceptionBuilder.TraceExceptionAsReturnValue(e); 85ExceptionBuilder.TraceExceptionAsReturnValue(e);