Lecture overview -- Keyboard shortcut: 'u'  Previous page: Propagation of exceptions in C# -- Keyboard shortcut: 'p'  Next page: Try-catch with a finally clause -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Exception Handling - slide 23 : 30

Raising and throwing exceptions in C#
We are using an athletic metaphor for establishing an error condition
 throw exception-object
...
throw new MyException("Description of problem");
...
class MyException: ApplicationException{
  public MyException(String problem): 
    base(problem){
  }
}