Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加异常处理代码 #15

Open
friends opened this issue Dec 12, 2010 · 0 comments
Open

增加异常处理代码 #15

friends opened this issue Dec 12, 2010 · 0 comments

Comments

@friends
Copy link
Owner

friends commented Dec 12, 2010

NewsEdit.aspx.cs文件中,在方法btnEdit_Click中调用了newsHandler的Insert方法,而Insert方法有可能会抛出异常InsertException,因此请将newsHandler.Insert()语句放到一个try块中,并且写出相应的catch代码捕抓异常。
同样,在UserManage.aspx.cs中,调用了userHandler的Delete方法,该方法可能会抛出DeleteException异常,请将语句userHandler.Delete()放到一个try块中,并写出相应的catch代码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant