Subscription.find({include: 'categories'}, function (err, subscriptions) {
console.log(subscriptions);
//...
});
请问我有没有身体可以帮助我,但它显示为';'预期错误
答案 0 :(得分:1)
如果您不想通过try catch引发异常,那么第二个Methode就是这样做的:
public static void main(String[] args) throws IOException{
//But your Code here where you Need to throw an Exception
}
第二种方法是使用try / catch
像这样:
public static void main(String[] args){
try{
//Code which throws an exception
}catch(IOException e){
e.printstacktrace();
}
}