异常

  Exception类的public方法

    getMessage(); getCode(); getFile(); getLine(); getPrivious getTrace(); getTraceAsString(); __toString();  

  1.抛出异常:

    throw new Exception();

    try{

   }catch(Exception $e){

   }

  2.自定义异常:

  class newException extends Exception{

  }