The following exceptions are thrown by certain C# operations.admin管理员组文章数量:1567014
System.ArithmeticException
A base class for exceptions that occur during
arithmetic operations, such as
System.DivideByZeroException and
System.OverflowException.
System.ArrayTypeMismatchException
Thrown when a store into an array fails because the
actual type of the stored element is incompatible
with the actual type of the array.
System.DivideByZeroException
Thrown when an attempt to divide an integral
value by zero occurs.
System.IndexOutOfRangeException
Thrown when an attempt to index an array via an
index that is less than zero or outside the bounds of
the array.
System.InvalidCastException
Thrown when an explicit conversion from a base
type or interface to a derived type fails at run time.
System.NullReferenceException
Thrown when a null reference is used in a way
that causes the referenced object to be required.
System.OutOfMemoryException
Thrown when an attempt to allocate memory (via
new) fails.
System.OverflowException
Thrown when an arithmetic operation in a
checked context overflows.
System.StackOverflowException
Thrown when the execution stack is exhausted by
having too many pending method calls; typically
indicative of very deep or unbounded recursion.
System.TypeInitializationException
Thrown when a static constructor throws an
exception, and no catch clauses exists to catch it.
本文标签: exceptionsthrownOperations
版权声明:本文标题:The following exceptions are thrown by certain C# operations. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1727342281a1109562.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论