I have a interesting question. does hibernate doesnt throw an excption if it builds the factory?
because if i debug this code
Code:
try {
conf.configure().addProperties(prop);
factory=conf.buildSessionFactory();
}catch(HibernateException e)
{
throw new Exception( "NamingException: " + e.getMessage( ));
}
and type in my dialog false data for example a false ip of the server the output says unknownhostexcception what is right but why isnt this exception caught in thes catch ? it is the same if i type false login informations.
because i wanto to open a JOptionPane if i get an unknown host exception or anythink like that
and i have also tried UnknownHostException instead of HibernateException.
please give me a fast and compident answer
With best regards
Joe
Code: