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,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 );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue