강제로 Exception 에러 발생시키기


try
{
    throw (new Exception("에러메세지"));
}
catch (Exception e)
{
    //e.Message 출력
}

 

오랫만에 색 포스팅 *_*

prev 1 ··· 10 11 12 13 14 15 16 ··· 66 next