Defensive coding: exception