ThrowHelper.ThrowLockRecursionException Method

Definition

Overloads

ThrowLockRecursionException()

Throws a new LockRecursionException.

ThrowLockRecursionException(String)

Throws a new LockRecursionException.

ThrowLockRecursionException(String, Exception)

Throws a new LockRecursionException.

ThrowLockRecursionException<T>(String)

Throws a new LockRecursionException.

ThrowLockRecursionException<T>()

Throws a new LockRecursionException.

ThrowLockRecursionException<T>(String, Exception)

Throws a new LockRecursionException.

ThrowLockRecursionException()

Throws a new LockRecursionException.

public static void ThrowLockRecursionException ();
static member ThrowLockRecursionException : unit -> unit
Public Shared Sub ThrowLockRecursionException ()

Exceptions

Thrown with no parameters.

Applies to

ThrowLockRecursionException(String)

Throws a new LockRecursionException.

public static void ThrowLockRecursionException (string? message);
static member ThrowLockRecursionException : string -> unit
Public Shared Sub ThrowLockRecursionException (message As String)

Parameters

message
String

The message to include in the exception.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowLockRecursionException(String, Exception)

Throws a new LockRecursionException.

public static void ThrowLockRecursionException (string? message, Exception? innerException);
static member ThrowLockRecursionException : string * Exception -> unit
Public Shared Sub ThrowLockRecursionException (message As String, innerException As Exception)

Parameters

message
String

The message to include in the exception.

innerException
Exception

The inner Exception to include.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowLockRecursionException<T>(String)

Throws a new LockRecursionException.

public static T ThrowLockRecursionException<T> (string? message);
static member ThrowLockRecursionException : string -> 'T
Public Shared Function ThrowLockRecursionException(Of T) (message As String) As T

Type Parameters

T

The type of expected result.

Parameters

message
String

The message to include in the exception.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowLockRecursionException<T>()

Throws a new LockRecursionException.

public static T ThrowLockRecursionException<T> ();
static member ThrowLockRecursionException : unit -> 'T
Public Shared Function ThrowLockRecursionException(Of T) () As T

Type Parameters

T

The type of expected result.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with no parameters.

Applies to

ThrowLockRecursionException<T>(String, Exception)

Throws a new LockRecursionException.

public static T ThrowLockRecursionException<T> (string? message, Exception? innerException);
static member ThrowLockRecursionException : string * Exception -> 'T
Public Shared Function ThrowLockRecursionException(Of T) (message As String, innerException As Exception) As T

Type Parameters

T

The type of expected result.

Parameters

message
String

The message to include in the exception.

innerException
Exception

The inner Exception to include.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with the specified parameter.

Applies to