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}
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access