Example handler: exception handling with default value