AbortSignalException Class

Thrown by AbortSignal.ThrowIfAborted when the abort reason is not an exception.

public sealed class AbortSignalException : Exception
Inheritance
Exception AbortSignalException

Constructors

NameDescription
AbortSignalException()Creates an exception with a default message.
AbortSignalException(string?)Creates an exception with the given message.
AbortSignalException(string?, Exception?)Creates an exception with the given message and inner exception.

AbortSignalException overloads

AbortSignalException()

AbortSignal.cs

Creates an exception with a default message.

public AbortSignalException()

AbortSignalException(string?)

AbortSignal.cs

Creates an exception with the given message.

public AbortSignalException(string? message)
Parameters
message string?

AbortSignalException(string?, Exception?)

AbortSignal.cs

Creates an exception with the given message and inner exception.

public AbortSignalException(string? message, Exception? innerException)
Parameters
message string?
innerException Exception?

Properties

NameDescription
ReasonGets the abort reason.

Gets the abort reason.

public object? Reason { get; }

Property value

object?