Exception sendiri

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Exception sendiri

Badi Hrp
Mo nanya,

saya buat Exception sendiri, tetapi masih error. Ada apa yang salah?

 

class sQLConnection {

      Connection conn;

      public sQLConnection(){

            try{

                  Class.forname(xxx);

                  Conn = DriverManager.getConnection(xxxxxxx);

                 

            } catch sQLExceptionHandler{

                 

            } catch classNotFoundExceptionHandler{

            }

 

 

      }

 

}

 

class sQLExceptionHandler extends SQLException{

 

      public sQLExceptionHandler(){

}    

 

public sQLExceptionHandler(String msg){

super(msg)

}    

}

 

class classNotFoundExceptionHandler extends ClassNotFoundException{

 

      public classNotFoundExceptionHandler(){

}    

 

public classNotFoundExceptionHandler(String msg){

super(msg)

}    

}

 

 

Salam,

 

Badi

 

 



[Non-text portions of this message have been removed]