我通过 Java 代码移植到 c#。我想用 c# 重写以下 Java 代码。提前致谢 :)
// Called whenever an exception would be thrown.
public void onException(java.lang.Throwable throwable, WebDriver driver){
System.out.println("onException' Called whenever an exception would be thrown ...");
}