Update defexception usage to new syntax

Fixes #98