Modified UserRepository to throw SQLEception instead of wrapping.
This commit is contained in:
parent
178c9395db
commit
4c15668077
1 changed files with 1 additions and 8 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue