Name
ApplicationException
Synopsis
Derive from this class to create
your own application-specific
exceptions when a system-supplied exception is inappropriate. For
example, if an application’s methods receive an
invalid argument, it makes sense to throw an
ArgumentException. However, if an internal
calculation results in a value that violates your business rules, you
might choose to throw an application exception. Application
exceptions should be treated as nonfatal.
public class ApplicationException : Exception { // Public Constructors public ApplicationException( ); public ApplicationException(stringmessage); public ApplicationException(stringmessage, ExceptioninnerException); // Protected Constructors protected ApplicationException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Hierarchy
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
ApplicationException
Subclasses
System.Reflection.{InvalidFilterCriteriaException,
TargetException,
TargetInvocationException,
TargetParameterCountException}