Added support for BadParameter exceptions.