move exceptions to new namespace, update example