Catch exception after adding the routing resource