Modified UserRepository to throw SQLEception instead of wrapping.

This commit is contained in:
travismccauley 2003-12-29 20:48:53 +00:00
parent 178c9395db
commit 4c15668077

View file

@ -68,9 +68,7 @@ public class ThdlUserRepository
* @return Description of the Return Value
* @exception ThdlUserRepositoryException Description of the Exception
*/
public ThdlUser validate( ThdlUser user ) throws ThdlUserRepositoryException
{
try
public ThdlUser validate( ThdlUser user ) throws ThdlUserRepositoryException, SQLException
{
ThdlUser thdlUser = null;
String sql = "SELECT id, firstname, lastname, middlename, email, username, creditAttributionTag, password, passwordHint "
@ -104,11 +102,6 @@ public class ThdlUserRepository
con.close();
return thdlUser;
}
catch ( SQLException sqle )
{
throw new ThdlUserRepositoryException( sqle );
}
}
/**