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