摘要:美国微软开发的VBNET2005可视化程序设计语言中,有一个DivideByZeroException类,它是当程序中有整数除法运算而除数为零时发生的异常,这种异常通过“CatcheAsDivideByZeroException”语句来捕捉,捕捉到后根据相应的容错处理语句继续执行。但在教学实践和实际编程中发现,在整数除法运算中发生除数为零的情况时,DivideByZer...
VB 複製 'Declaration Public Sub New ( _ message As String, _ innerException As Exception _ ) Parameters message Type: System.String The error message that explains the reason for the exception. innerException Type: System.Exception The exception that is the cause of the current...
美国微软开发的VB.NET2005可视化程序设计语言中,有一个DivideByZeroException类,它是当程序中有整数除法运算而除数为零时发生的异常,这种异常通过"Catch e As DivideByZeroException"语句来捕捉,捕捉到后根据相应的容错处理语句继续执行.但在教学实践和实际编程中发现,在整数除法运算中发生除数为零的情况时,DivideBy...
Initializes a new instance of the DivideByZeroException class with a specified error message. Namespace: System Assembly: mscorlib (in mscorlib.dll) Syntax VB 複製 'Declaration Public Sub New ( _ message As String _ ) Parameters message Type: System.String A String that describes the...
Initializes a new instance of the DivideByZeroException class with a specified error message and a reference to the inner exception that is the cause of this exception. Namespace: System Assembly: mscorlib (in mscorlib.dll) Syntax VB Copy 'Declaration Public Sub New ( _ message ...