Defunct wrapper class kept for compatibility. StatementInvalid wraps the original exception now.