编译器抱怨这段代码:
public OdbcVersion odbc_version { set { set_odbc_version_ (value); } }
private void set_odbc_version_ (OdbcVersion value) throws UnixOdbcError {
if (!succeeded (set_environment_attribute_real (handle, Attribute.ODBC_VERSION, (void *) value, 0))) {
throw new UnixOdbcError.SET_ENVIRONMENT_ATTRIBUTE ("Could not set environment attribute");
}
}
消息是:
/mnt/code/dbdiadesign/src/unixodbc.vala:65.42-65.66: warning: unhandled error `UnixOdbc.UnixOdbcError'
我在什么地方把throws
条款放在财产声明中?