Export (0) Print
Expand All
2 out of 7 rated this helpful - Rate this topic

ApplicationException Class

The exception that is thrown when a non-fatal application error occurs.

For a list of all members of this type, see ApplicationException Members.

System.Object
   System.Exception
      System.ApplicationException
         System.Reflection.InvalidFilterCriteriaException
         System.Reflection.TargetException
         System.Reflection.TargetInvocationException
         System.Reflection.TargetParameterCountException

[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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

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.

Requirements

Namespace: System

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)

See Also

ApplicationException Members | System Namespace | Exception | Handling and Throwing Exceptions

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.