SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | // Service | |
3 | ||
4 | public User saveOrUpdate(User user, Actor actor) | |
5 | throws UserException { | |
6 | try { | |
7 | if(!checkActorCanSaveOrUpdate(actor, user)) | |
8 | throw new UserException("Actor cannot perform action"); | |
9 | ||
10 | return dao.saveOrUpdate(user); | |
11 | } | |
12 | catch(SomeDaoException e) { | |
13 | - | erturn new UserException(e); |
13 | + | throw new UserException(e); |
14 | } | |
15 | } |