Common Exception Types - CSharp Custom Type

CSharp examples for Custom Type:Exception

Introduction

ExceptionDescription
System.ArgumentException Thrown when a function is called with a bogus argument.
System.ArgumentNullException Subclass of ArgumentException that's thrown when a function argument is null.
System.ArgumentOutOfRangeException Subclass of ArgumentException that's thrown when an argument is too big or too small.
System.InvalidOperationExceptionThrown when the state of an object is unsuitable for a method to success fully execute
System.NotSupportedExceptionThrown to indicate that a particular functionality is not supported.
System.NotImplementedException Thrown to indicate that a function has not yet been implemented.
System.ObjectDisposedException Thrown when the object upon which the function is called has been disposed.
System.NullReferenceException. The CLR throws this exception when you attempt to access a member of an object whose value is null.

Related Tutorials