Register a custom exception printer