close
public class ExceptionFunction {
public static boolean test(String input) throws Exception
{
if(input==null)
throw new Exception("自訂錯誤訊息");
else
return true;
}
}
全站熱搜