Parent don't check the $uri because I wanted a custom exception message.