Use VariantException instead of a bare Exception.