DivideByZeroException (System.DivideByZeroException)

Inherits: System.ArithmeticException

Interfaces: ISerializable, _Exception

Derived Types: 0

Assembly: mscorlib.dll

The exception that is thrown when there is an attempt to divide an integral or decimal value by zero.

VB.NET C#

C#

public class DivideByZeroException : System.ArithmeticException, System.Runtime.Serialization.ISerializable, System.Runtime.InteropServices._Exception
{
}

Articles

C# Tutorial - Lesson 17

4. res = (num / zero); 5. } 6. catch (System.DivideByZeroException e) 7. { 8. Console.WriteLine("Error: an attempt to divide by zero"); 9. } ...

Exception.GetBaseException Method (System)

Forced a division by 0 and ' threw a second exception. ---> System.DivideByZeroException: Attempted to div ' ide by zero. ' at NDP_UE_VB.NestedExceptions.DivideBy0() ' --- End of ...

Exception Handling In C#

System.DivideByZeroException: Attempted to divide by zero.at ConsoleApplication4.Class1.Main(String[] args) in d:\dont delete\c#(c sharp)\swapna\programs\consoleapplication4 ...

DivideByZeroException

System.DivideByZeroException does not catch exception ... intz As Integer inty = 0 intx = 5 Try intz = intx / inty Catch ex As System. DivideByZeroException MsgBox("Catch") End ...

Hyperlinked ECMA C# Language Specification

4 The result of x % y is the value produced by x -(x / y) * y. 5 If y is zero, a System.DivideByZeroException is thrown. 6 The remainder operator never causes an overflow. 7 Floating ...

Hyperlinked ECMA C# Language Specification

System.ArithmeticException: A base class for exceptions that occur during arithmetic operations, such as System.DivideByZeroException and System.OverflowException.

Mono Documentation

The members of System.DivideByZeroException are listed below. See Also: Inherited members from System.ArithmeticException [ ...

Mono Documentation

... Class Library : System.DivideByZeroException Overview | Members System.DivideByZeroException ... Constructs and initializes a new instance of the DivideByZeroException class.

www.acanthus.co.uk

System.DivideByZeroException: Attempted to divide by zero. at System.Data.Common.UnsafeNativeMethods.IDataInitializeGetDataSource.Invoke(IntPtr pThis, IntPtr pUnkOuter, Int32 ...

System.DivideByZeroException Class

public DivideByZeroException(string message, Exception innerException);

Custom .NET Training ASP.NET Training Silverlight Training LINQ Training IT Support