added more information to exception message.