ThrowHelper.ThrowMissingFieldException Method

Definition

Overloads

ThrowMissingFieldException(String, String)

Throws a new MissingFieldException.

ThrowMissingFieldException(String, Exception)

Throws a new MissingFieldException.

ThrowMissingFieldException()

Throws a new MissingFieldException.

ThrowMissingFieldException(String)

Throws a new MissingFieldException.

ThrowMissingFieldException<T>()

Throws a new MissingFieldException.

ThrowMissingFieldException<T>(String)

Throws a new MissingFieldException.

ThrowMissingFieldException<T>(String, Exception)

Throws a new MissingFieldException.

ThrowMissingFieldException<T>(String, String)

Throws a new MissingFieldException.

ThrowMissingFieldException(String, String)

Throws a new MissingFieldException.

public static void ThrowMissingFieldException (string? className, string? fieldName);
static member ThrowMissingFieldException : string * string -> unit
Public Shared Sub ThrowMissingFieldException (className As String, fieldName As String)

Parameters

className
String

The target class being inspected.

fieldName
String

The target field being retrieved.

Exceptions

Thrown with the specified parameters.

Applies to

ThrowMissingFieldException(String, Exception)

Throws a new MissingFieldException.

public static void ThrowMissingFieldException (string? message, Exception? innerException);
static member ThrowMissingFieldException : string * Exception -> unit
Public Shared Sub ThrowMissingFieldException (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

ThrowMissingFieldException()

Throws a new MissingFieldException.

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

Exceptions

Thrown with no parameters.

Applies to

ThrowMissingFieldException(String)

Throws a new MissingFieldException.

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

Parameters

message
String

The message to include in the exception.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowMissingFieldException<T>()

Throws a new MissingFieldException.

public static T ThrowMissingFieldException<T> ();
static member ThrowMissingFieldException : unit -> 'T
Public Shared Function ThrowMissingFieldException(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

ThrowMissingFieldException<T>(String)

Throws a new MissingFieldException.

public static T ThrowMissingFieldException<T> (string? message);
static member ThrowMissingFieldException : string -> 'T
Public Shared Function ThrowMissingFieldException(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

ThrowMissingFieldException<T>(String, Exception)

Throws a new MissingFieldException.

public static T ThrowMissingFieldException<T> (string? message, Exception? innerException);
static member ThrowMissingFieldException : string * Exception -> 'T
Public Shared Function ThrowMissingFieldException(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

ThrowMissingFieldException<T>(String, String)

Throws a new MissingFieldException.

public static T ThrowMissingFieldException<T> (string? className, string? fieldName);
static member ThrowMissingFieldException : string * string -> 'T
Public Shared Function ThrowMissingFieldException(Of T) (className As String, fieldName As String) As T

Type Parameters

T

The type of expected result.

Parameters

className
String

The target class being inspected.

fieldName
String

The target field being retrieved.

Returns

T

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

Exceptions

Thrown with the specified parameters.

Applies to