Table of Contents

Class ExceptionUtil

Namespace
PaintDotNet
Assembly
PaintDotNet.Fundamentals.dll

The purposes of these methods is based on the fact that any method that throws an exception is not a candidate for inlining. Instead, you can call a method in this class which may then allow the calling method to be inlined.

public static class ExceptionUtil
Inheritance
ExceptionUtil
Inherited Members

Methods

InvalidEnumArgumentException<T>(T, string)
IsCriticalException(Exception)

Returns true if the exception is a critical exception that should not be handled or suppressed.

SetLocalizedMessage(Exception, string)
Throw(Exception)
ThrowArgumentException()
ThrowArgumentException(string)
ThrowArgumentException(string, string)
ThrowArgumentNullException()
ThrowArgumentNullException(string)
ThrowArgumentNullException(string, string)
ThrowArgumentOutOfRangeException()
ThrowArgumentOutOfRangeException(string)
ThrowArgumentOutOfRangeException(string, object, string)
ThrowArgumentOutOfRangeException(string, string)
ThrowIndexOutOfRangeException()
ThrowIndexOutOfRangeException<T>()
ThrowInterfaceNotSupportedException(Type)
ThrowInternalErrorException()
ThrowInternalErrorException(Exception)
ThrowInternalErrorException(string)
ThrowInternalErrorException(string, Exception)
ThrowInvalidCastException()
ThrowInvalidCastException(string?)
ThrowInvalidEnumArgumentException(string, int, Type)
ThrowInvalidEnumArgumentException<T>(T, string)
ThrowInvalidOperationException()
ThrowInvalidOperationException(string)
ThrowInvalidOperationException(string, Exception)
ThrowKeyNotFoundException()
ThrowKeyNotFoundException(string)
ThrowLockRecursionException()
ThrowLockRecursionException(string)
ThrowLockRecursionException(string, Exception)
ThrowNotSupportedException()
ThrowNotSupportedException(string)
ThrowObjectDisposedException(string)
ThrowObjectDisposedException<T>()
ThrowOperationCanceledException()
ThrowReadOnlyException()