C#开发 —— 异常处理

System.ArithmeticException

在算术运行期间发生异常

System.ArrayTypeMismatchException

存储元素的实际类型与数组的实际类型不兼容而导致存储失败

System.DivideByZeroException

零除异常

System.IndexOutOfRangeException

System.InvalidCastException

System.NullReferenceException

System.OutOfMemoryException

System.OverflowException


try …. catch …. finally

throw

原文地址:https://www.cnblogs.com/sprint1989/p/3829813.html