ThrowHelper

Namespace: SnowBank.Diagnostics.Contracts · class

Methods

ArgumentException

static ArgumentException ArgumentException(string paramName, string message = null)

static ArgumentException ArgumentException(string paramName, ref DefaultInterpolatedStringHandler message)

ArgumentInvalidOffLen

static ArgumentException ArgumentInvalidOffLen()

ArgumentNullException

static ArgumentNullException ArgumentNullException(string paramName)

static ArgumentNullException ArgumentNullException(string paramName, string message)

static ArgumentNullException ArgumentNullException(string paramName, ref DefaultInterpolatedStringHandler message)

ArgumentOutOfRangeException

static ArgumentOutOfRangeException ArgumentOutOfRangeException(string paramName)

static ArgumentOutOfRangeException ArgumentOutOfRangeException(string paramName, string message)

static ArgumentOutOfRangeException ArgumentOutOfRangeException(string paramName, ref DefaultInterpolatedStringHandler message)

static ArgumentOutOfRangeException ArgumentOutOfRangeException(string paramName, object actualValue, string message)

static ArgumentOutOfRangeException ArgumentOutOfRangeException(string paramName, object actualValue, ref DefaultInterpolatedStringHandler message)

ArgumentOutOfRangeIndex

static ArgumentOutOfRangeException ArgumentOutOfRangeIndex(int index)

ArgumentOutOfRangeNeedNonNegNum

static ArgumentOutOfRangeException ArgumentOutOfRangeNeedNonNegNum(string paramName)

FormatException

static FormatException FormatException(string message)

static FormatException FormatException(ref DefaultInterpolatedStringHandler message)

IndexOutOfRangeException

static IndexOutOfRangeException IndexOutOfRangeException()

InvalidOperationException

static InvalidOperationException InvalidOperationException(string message)

static InvalidOperationException InvalidOperationException(ref DefaultInterpolatedStringHandler message)

InvalidOperationNoElements

static InvalidOperationException InvalidOperationNoElements()

InvalidOperationNoMatchingElements

static InvalidOperationException InvalidOperationNoMatchingElements()

NotSupportedException

static NotSupportedException NotSupportedException(string message)

static NotSupportedException NotSupportedException(ref DefaultInterpolatedStringHandler message)

NotSupportedReadOnlyCollection

static NotSupportedException NotSupportedReadOnlyCollection()

ObjectDisposedException

static ObjectDisposedException ObjectDisposedException<TDisposed>(TDisposed disposed)

static ObjectDisposedException ObjectDisposedException(Type type)

static ObjectDisposedException ObjectDisposedException<TDisposed>(string message)

static ObjectDisposedException ObjectDisposedException<TDisposed>(ref DefaultInterpolatedStringHandler message)

static ObjectDisposedException ObjectDisposedException(Type type, string message)

static ObjectDisposedException ObjectDisposedException(Type type, ref DefaultInterpolatedStringHandler message)

static ObjectDisposedException ObjectDisposedException<TDisposed>(TDisposed disposed, string message)

static ObjectDisposedException ObjectDisposedException<TDisposed>(TDisposed disposed, ref DefaultInterpolatedStringHandler message)

static ObjectDisposedException ObjectDisposedException(string message, Exception innerException)

static ObjectDisposedException ObjectDisposedException(ref DefaultInterpolatedStringHandler message, Exception innerException)

OperationCanceledException

static OperationCanceledException OperationCanceledException(string message)

static OperationCanceledException OperationCanceledException(ref DefaultInterpolatedStringHandler message)

ThrowArgumentException

static void ThrowArgumentException(string paramName, string message = null)

static void ThrowArgumentException(string paramName, ref DefaultInterpolatedStringHandler message)

static T ThrowArgumentException<T>(string paramName, string message = null)

static T ThrowArgumentException<T>(string paramName, ref DefaultInterpolatedStringHandler message)

ThrowArgumentNullException

static void ThrowArgumentNullException(string paramName)

static T ThrowArgumentNullException<T>(string paramName)

static void ThrowArgumentNullException(string paramName, string message)

static void ThrowArgumentNullException(string paramName, ref DefaultInterpolatedStringHandler message)

static T ThrowArgumentNullException<T>(string paramName, string message)

static T ThrowArgumentNullException<T>(string paramName, ref DefaultInterpolatedStringHandler message)

ThrowArgumentOutOfRangeException

static void ThrowArgumentOutOfRangeException()

static void ThrowArgumentOutOfRangeException(string paramName)

static void ThrowArgumentOutOfRangeException(string paramName, string message)

static void ThrowArgumentOutOfRangeException(string paramName, ref DefaultInterpolatedStringHandler message)

static void ThrowArgumentOutOfRangeException(string paramName, object actualValue, string message)

static void ThrowArgumentOutOfRangeException(string paramName, object actualValue, ref DefaultInterpolatedStringHandler message)

ThrowArgumentOutOfRangeIndex

static void ThrowArgumentOutOfRangeIndex(int index)

static T ThrowArgumentOutOfRangeIndex<T>(int index)

ThrowArgumentOutOfRangeNeedNonNegNum

static void ThrowArgumentOutOfRangeNeedNonNegNum(string paramName)

ThrowFormatException

static void ThrowFormatException(string message)

static void ThrowFormatException(ref DefaultInterpolatedStringHandler message)

static T ThrowFormatException<T>(string message)

static T ThrowFormatException<T>(ref DefaultInterpolatedStringHandler message)

ThrowIndexOutOfRangeException

static void ThrowIndexOutOfRangeException()

static T ThrowIndexOutOfRangeException<T>()

ThrowInvalidOperationException

static void ThrowInvalidOperationException(string message)

static void ThrowInvalidOperationException(ref DefaultInterpolatedStringHandler message)

static T ThrowInvalidOperationException<T>(string message)

static T ThrowInvalidOperationException<T>(ref DefaultInterpolatedStringHandler message)

ThrowNotSupportedException

static void ThrowNotSupportedException(string message)

static void ThrowNotSupportedException(ref DefaultInterpolatedStringHandler message)

static T ThrowNotSupportedException<T>(string message)

static T ThrowNotSupportedException<T>(ref DefaultInterpolatedStringHandler message)

ThrowNotSupportedReadOnlyCollection

static void ThrowNotSupportedReadOnlyCollection()

ThrowObjectDisposedException

static void ThrowObjectDisposedException(Type type)

static void ThrowObjectDisposedException<TDisposed>(TDisposed disposed)

static void ThrowObjectDisposedException(Type type, string message)

static void ThrowObjectDisposedException(Type type, ref DefaultInterpolatedStringHandler message)

static void ThrowObjectDisposedException(string message, Exception innerException)

static void ThrowObjectDisposedException(ref DefaultInterpolatedStringHandler message, Exception innerException)

static void ThrowObjectDisposedException<TDisposed>(TDisposed disposed, string message)

static void ThrowObjectDisposedException<TDisposed>(TDisposed disposed, ref DefaultInterpolatedStringHandler message)

ThrowOperationCanceledException

static void ThrowOperationCanceledException(string message)

static void ThrowOperationCanceledException(ref DefaultInterpolatedStringHandler message)

static T ThrowOperationCanceledException<T>(string message)

static T ThrowOperationCanceledException<T>(ref DefaultInterpolatedStringHandler message)

TryMapToComplexException

static Exception TryMapToComplexException(Type exceptionType, string message, string paramName)

TryMapToKnownException

static Exception TryMapToKnownException(Type exceptionType, string message, string paramName, object details)