public org.apache.struts.webapp.example.User | findUser(java.lang.String username)If the username is "expired" throw an ExpiredPasswordException
to simulate a business exception.
If the username is "arithmetic" throw an Aritmetic exception to
simulate a system exception.
Otherwise, delegate to MemoryDatabase.
if ("expired".equals(username)) throw new ExpiredPasswordException("Testing ExpiredPasswordException ...");
if ("arithmetic".equals(username)) throw new ArithmeticException();
return super.findUser(username);
|