PPT Slide
public void getNextCustomer( )
{
Customer cust;
try {
...
cust = (Customer) customerQueue.dequeue( );
...
} // try
catch (QueueEmptyException e) {
// handle the QueueEmptyException here
...
} // catch
} // getNextCustomer
An Exception: Catching It
Option 1
Previous slide
Next slide
Back to first slide
View graphic version