Exception handling example