System.Exception

 

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

点赞