这是什么错啊
你的test2()后面没有throws DrunkException
public void test2() throws*** {}。报错不是提示你“添加一个throws声明”了吗,直接点提示,自动加上就行