The exception that is thrown when a non-fatal application error occurs.
For a list of all members of this type, see ApplicationException Members.
[Visual Basic] <Serializable> Public Class ApplicationException Inherits Exception [C#] [Serializable] public class ApplicationException : Exception [C++] [Serializable] public __gc class ApplicationException : public Exception [JScript] public Serializable class ApplicationException extends Exception
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
ApplicationException is thrown by a user program, not by the common language runtime. If you are designing an application that needs to create its own exceptions, derive from the ApplicationException class. ApplicationException extends Exception, but does not add new functionality. This exception is provided as means to differentiate between exceptions defined by applications versus exceptions defined by the system.
ApplicationException does not provide information as to the cause of the exception. In most scenarios, instances of this class should not be thrown. In cases where this class is instantiated, a human-readable message describing the error should be passed to the constructor.
ApplicationException uses the HRESULT COR_E_APPLICATION, which has the value 0x80131600.
For a list of initial property values for an instance of ApplicationException, see the ApplicationException constructors.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)