Skip to content

Instantly share code, notes, and snippets.

@dbushenko
Created December 17, 2017 20:19
Show Gist options
  • Save dbushenko/b267b6ead30d6b0766a5996555f7936a to your computer and use it in GitHub Desktop.
Save dbushenko/b267b6ead30d6b0766a5996555f7936a to your computer and use it in GitHub Desktop.
public Person mainFlow(String arg1, String arg2, int arg3) throws WrongArgs, WrongPerson, WrongResult {
verifyArgs(arg1, arg2, arg3);
Person p = personRepo.readFromDb( arg3 );
verifyPerson(p);
Result result = doSomething(arg1, arg2, p);
checkResult( result );
return p;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment