KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > lang > reflect > UndeclaredThrowableException

java.lang.reflect
Class UndeclaredThrowableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.reflect.UndeclaredThrowableException
All Implemented Interfaces:
Serializable
See Also:
Top Examples, Source Code, Throwable.getCause(), getUndeclaredThrowable(), invoke

public Throwable getCause()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[639]Implements an AbstractTableModel
By Anonymous on 2004/02/04 06:46:21  Rate
package com.tatis.ra.data; 
  
  
 /** 
  *  < p > Title:  < /p >  
  *  < p > Description:  < /p >  
  *  < p > Copyright: Copyright  ( c )  2003 < /p >  
  *  < p > Company:  < /p >  
  * @author not attributable 
  * @version 1.0 
  */
 
  
  
 import java.rmi.RemoteException; 
  
  
 import javax.ejb.CreateException; 
 import javax.swing.table.*; 
  
  
 import com.tatis.common.exception.TatisSystemException; 
 import com.tatis.common.util.ServiceLocator; 
 import com.tatis.ra.ejb.facade.RiskAssessmentFacade; 
 import com.tatis.ra.ejb.facade.RiskAssessmentFacadeHome; 
 import com.tatis.ra.exception.RAException; 
  
  
  
 /** 
  *  < p > Title:  < /p >  
  *  < p > Description:  < /p >  
  *  < p > Copyright: Copyright  ( c )  2003 < /p >  
  *  < p > Company:  < /p >  
  * @author not attributable 
  * @version 1.0 
  */
 
  
  
 public class RiskInstructionTableModel 
     extends AbstractTableModel  {  
       final String [  ]  columnNames = { "No","Risk Instructions" } ; 
       Object [  ]  [  ]  data =  {  
            { "1","Notify and hold for Department of Agriculture health inspection team" } , 
            { "2","Confirm compliance of goods with country of origin labeling requirements" } , 
            { "3","Take sample and send to customs laboratory for chemical analysis" } , 
            { "4","Conduct full examination of goods and documents" } , 
            { "5","Check goods against trademark register for potential counterfeits. " } , 
            { "6","Obtain and review importer???s sales agreement for buying agent payments" } , 
            { "7","Check compliance with toy safety labeling requirements" } , 
            { "8","Check tariff classification" }  
  
  
        } ; 
  
  
        public RiskInstructionTableModel (  )   {  
  
  
     ServiceLocator serviceLocator = ServiceLocator.getServiceLocator (  ) ; 
      
     try  {  
       System.out.println ( "** Inside RiskInstructionTableModel b4 lookup **" ) ; 
       RiskAssessmentFacadeHome home =  ( RiskAssessmentFacadeHome )  
       serviceLocator.getEJBHome ( "ejb/RiskAssessmentFacadeEJB",RiskAssessmentFacadeHome.class ) ; 
       System.out.println ( "** Inside RiskInstructionTableModel after lookup ** " + home ) ; 
       RiskAssessmentFacade facade = home.create (  ) ; 
       System.out.println ( "** Inside RiskInstructionTableModel b4 call to getAll (  )  ** " + facade ) ; 
       facade.getAll (  ) ; 
       System.out.println ( "** Inside RiskInstructionTableModel after coming from facade ** " ) ; 
      
      }  catch  ( TatisSystemException e )   {  
       // TODO Auto-generated catch block 
       e.getCause (  ) ; 
      }  catch  ( RemoteException e )   {  
       // TODO Auto-generated catch block 
       e.getCause (  ) ; 
      }  catch  ( CreateException e )   {  
       // TODO Auto-generated catch block 
       e.getCause (  ) ; 
      }  catch  ( RAException e )   {  
       // TODO Auto-generated catch block 
       e.getCause (  ) ; 
      }  
         }  
         
        public int getRowCount (  )   {  
          return data.length; 
         }  
        public int getColumnCount (  )   {  
          return columnNames.length; 
         }  
        public Object getValueAt ( int rowIndex, int columnIndex )   {  
          return data [ rowIndex ]  [ columnIndex ] ; 
         }  
        public String getColumnName ( int col )  {  
          return columnNames [ col ] ; 
         }  
        public Class getColumnClass ( int c )   {  
          return getValueAt ( 0, c ) .getClass (  ) ; 
         }  
  
  
  
  }  
 


public Throwable getUndeclaredThrowable()
See Also:
Throwable.getCause()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void printStackTrace()
See Also:
System.err, Throwable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void printStackTrace(PrintStream ps)
See Also:
Throwable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void printStackTrace(PrintWriter pw)
See Also:
Throwable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public UndeclaredThrowableException(Throwable undeclaredThrowable)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public UndeclaredThrowableException(Throwable undeclaredThrowable,
                                    String s)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags