Customizing an exception type