Exception - Narumikazuchi/Common GitHub Wiki
Assembly: Narumikazuchi.dll
Namespace: Narumikazuchi
Class: ExceptionHelpers
ExtractInformation(System.Exception)
ThrowIfNotCastable<TAny, TResult>(TAny, System.String, System.String)
ThrowIfNullOrEmpty(System.String, System.String, System.String)
ThrowIfOutOfRange<TComparable>(TComparable, TComparable, TComparable, System.String, System.String)
Extracts ordered information about all function calls that happened up to this exception.
public static ExceptionInformation ExtractInformation(this System.Exception);
Throws an InvalidCastException
if the type TAny
is not castable to the type TResult
. Otherwise does nothing.
public static void ThrowIfNotCastable<TAny, TResult>(this TAny,
[System.String],
[System.String]);
Throws a NullReferenceException
if the input System.String
is either null
or empty (includes only whitespace). Otherwise does nothing.
public static void ThrowIfNullOrEmpty(this System.String,
[System.String],
[System.String]);
Throws a ArgumentOutOfRangeException
if the input TComparable
is either less than the lowBound
or higher than the highBound
. Otherwise does nothing.
public static void ThrowIfOutOfRange<TComparable>(this TComparable,
TComparable,
TComparable,
[System.String],
[System.String]);