Calling Facebook->getAccessTokenFromCode() raised no error when IP was not white-listed

When calling the getAccessTokenFromCode method, no error was raised when the IP was not white-listed for the application. Or more general, no errors were detected if an error was returned from the Facebook servers using "OAuth 2.0 Draft 00 style".