www.evidhyashala.com provides free free mock test , free online exam , online exam free test series , online exam free , Online Test Exam Series , free exam papers past papers , online exam form ,Online Test Series for Exam Prep. Free Mock Tests - for All govt jobs. Bank PO, Clerk, SSC CGL, CHSL, JE, GATE, Insurance, Railways, IBPS RRB, SBI, RBI, IPPB, BSNL TTA

Sponser Link

know more info pls click here

What is ApplicationException class used for?-interview04032012

If you are creating a large application or creating components that are used by other applications, you might want to define your own exception classes based on the ApplicationException class. For example, the following code defines a class for the UserLoggedOnException: public class UserLoggedOnException : System.ApplicationException { // Exception constructor (overloaded). public UserLoggedOnException() : this("The user is already logged on to the server", null) { } public UserLoggedOnException(string message) : this(message, null) { } public UserLoggedOnException(string message, Exception inner) : base(message, inner) { } } The preceding UserLoggedOnException class inherits its properties and methods from the ApplicationException base class. The new exception class provides only its own constructor to set the default message to display. This is a standard practice.

0 comments:

Popular Posts