If the database doesn't exist, an exception is thrown, and the DBManager constructor creates the database itself.
如果数据库不存在,将抛出一个异常,并且DBManager构造函数自己将创建数据库。
The runtime will stop any exceptions trying to leave a type constructor and wrap the exception inside of a new TypeInitializationException object.
运行库将停止任何尝试保留类型构造函数的异常,并将该异常包装到一个新的TypeInitializationException对象内。
The constructor for the file_lock class accepts the name of the file to be locked, and it's important to open the file before lock is invoked; otherwise, an exception will be thrown.
file_lock类的构造函数接受要锁定的文件的名称,一定要在调用lock之前打开文件;否则会抛出异常。
For example, had the constructor of exception been protected instead of public, developers would have been almost forced to do the right thing and throw an appropriate exception.
例如,对于Exception类的构造函数应该定义为protected,而不是public,这就可以强迫开发者采取正确的方式,抛出一个适当的异常。
This is extremely simplistic and leads to an exception being thrown when a constructor or method is called with the wrong argument types.
这极为简单,使用错误的参数类型调用构造函数或方法时,会引发异常。
The exception's constructor is not run, and the exception state is also deserialized.
该异常的构造函数未运行,异常状态也被反序列化。
The last constructor is used in the case when the code catches an exception and then re-throws it as a different exception, but wants to retain the original exception information.
最后一个参数结构是用于代码截获一个异常后再重新丢出一个异常,但又想保持原有的异常信息。
The last constructor is used in the case when the code catches an exception and then re-throws it as a different exception, but wants to retain the original exception information.
最后一个参数结构是用于代码截获一个异常后再重新丢出一个异常,但又想保持原有的异常信息。
应用推荐