close

public class ExceptionFunction {

 
    public static boolean test(String input) throws Exception
    {
        if(input==null)
            throw new Exception("自訂錯誤訊息");
        else
            return true;
    }
}
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 sawyer1314 的頭像
    sawyer1314

    Cindy的部落格

    sawyer1314 發表在 痞客邦 留言(0) 人氣()