C # Common Exception class records

Source: Internet
Author: User

Copied from MSDN.

ArgumentException the non-null argument passed to the method is not valid.

ArgumentNullException the argument passed to the method is empty.

The ArgumentOutOfRangeException parameter is outside the range of valid values

The part of the DirectoryNotFoundException directory path is not valid.

DivideByZeroException in an integer or denominator decimal division operation is zero.

Drivenotfoundexception A driver is not available or does not exist.

The FileNotFoundException file does not exist.

The FormatException value is not converted from a string by a conversion method such as parsing in the appropriate format.

The IndexOutOfRangeException index is outside the range of an array or collection.

The InvalidOperationException method call is not valid in the current state of the object.

KeyNotFoundException specifies that the key cannot be found for an access part in a collection.

NotImplementedException a method or operation is not implemented.

NotSupportedException unsupported methods or operations.

The action of the ObjectDisposedException object has been laid out on the object.

OverflowException arithmetic, casting, or conversion operations cause overflow.

The pathtoolongexception path or file name exceeds the system-defined length.

PlatformNotSupportedException does not support operations on the current platform.

Rankexception is passed to the method with an array of dimension errors.

TimeoutException the time interval assigned to an operation has expired.

UriFormatException an invalid Uniform Resource Identifier (URI) is used.

C # Common Exception class records

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.