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
1 changed files with 1 additions and 8 deletions

View File

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