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,10 +68,8 @@ public class ThdlUserRepository
* @return Description of the Return Value * @return Description of the Return Value
* @exception ThdlUserRepositoryException Description of the Exception * @exception ThdlUserRepositoryException Description of the Exception
*/ */
public ThdlUser validate( ThdlUser user ) throws ThdlUserRepositoryException public ThdlUser validate( ThdlUser user ) throws ThdlUserRepositoryException, SQLException
{ {
try
{
ThdlUser thdlUser = null; ThdlUser thdlUser = null;
String sql = "SELECT id, firstname, lastname, middlename, email, username, creditAttributionTag, password, passwordHint " String sql = "SELECT id, firstname, lastname, middlename, email, username, creditAttributionTag, password, passwordHint "
+ "FROM ThdlUsers " + "FROM ThdlUsers "
@ -103,11 +101,6 @@ public class ThdlUserRepository
} }
con.close(); con.close();
return thdlUser; return thdlUser;
}
catch ( SQLException sqle )
{
throw new ThdlUserRepositoryException( sqle );
}
} }