WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

ExceptionsExtension..::..CodeLineNumber Method

gets the actual or the aproximate line number when using AoT that generated the exception.

Namespace:  Walter
Assembly:  Walter (in Walter.dll)

Syntax


public static int CodeLineNumber(
	this Exception exception,
	int fallback
)

Parameters

exception
Type: Exception
The exception.
fallback
Type: Int32
The fallback line number, do not assign.

Return Value

the line of the exception or the line of the catch statement

Remarks


If AoT is used the line number will be inside the catch-block or on the line of the catchblock depending how it was formated