You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you throw some sort of exception, and document the method as throwing a base type of that exception's type, you'll get two inappropriate errors from Exceptional. For example, in the following,
(1) Task.Delay() can throw a TaskCanceledException;
(2) A TaskCanceledException is an OperationCanceledException;
(3) The method is documented as throwing OperationCanceledException
... and yet Exceptional gives the following seemingly inappropriate messages:
(1) Exception 'OperationCanceledException' is not thrown
(2) Exception 'TaskCanceledException' is not documented
/// <summary>
/// The blah async.
/// </summary>
/// <param name="cancellationToken">
/// The cancellation token.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
/// <exception cref="OperationCanceledException">
/// The operation was canceled.
/// </exception>
public async Task BlahAsync(CancellationToken cancellationToken)
{
await Task.Delay(37, cancellationToken).ConfigureAwait(false);
}
The text was updated successfully, but these errors were encountered:
If you throw some sort of exception, and document the method as throwing a base type of that exception's type, you'll get two inappropriate errors from Exceptional. For example, in the following,
(1) Task.Delay() can throw a TaskCanceledException;
(2) A TaskCanceledException is an OperationCanceledException;
(3) The method is documented as throwing OperationCanceledException
... and yet Exceptional gives the following seemingly inappropriate messages:
(1) Exception 'OperationCanceledException' is not thrown
(2) Exception 'TaskCanceledException' is not documented
The text was updated successfully, but these errors were encountered: