System.Exception

来源:互联网 发布:如何查看淘宝卖家资质 编辑:程序博客网 时间:2024/05/29 08:36

 

public class Exception: Iserializable, _Exception

{

...

}

 

 

//

throw new Exception("...");

 

try

{

...

}

catch(Exception e)

{

//e.TargetSite

//e.StackTrace

//e.HelpLink

//e.Data

}

 

System.SystemException

 

public class SystemException: Exception

{

...

}

NullReferenceException is SystemException

 

System.ApplicationException

public class ApplicationException: Exception

{

...

}

 

try{} catch(...){} catch(…){}…

try{}catch{}

 

finally block

原创粉丝点击