Update exceptions code