Created
May 16, 2016 15:46
-
-
Save j4cksw/56d2b00cd63fe1f31c5d18611478d600 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class UsersResource { | |
| public User findUserById(String userId){ | |
| User result = userDAO.findById(userId); | |
| if( result == null ){ | |
| throw new RuntimeException(String.format("User not found by id %s", userId)); | |
| } | |
| return result; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment