Skip to content

Instantly share code, notes, and snippets.

@distributedlife
Last active December 17, 2015 23:49
Show Gist options
  • Select an option

  • Save distributedlife/5692369 to your computer and use it in GitHub Desktop.

Select an option

Save distributedlife/5692369 to your computer and use it in GitHub Desktop.
P2 Magazine - Issue 1 - Puzzle Gists
class MarketEdge {
int value;
}
public MarketEdge deliverBusinessValue() {
MarketEdge marketEdge = new MarketEdge();
try {
marketEdge.value = 20;
throw new NotEnoughValueDeliveredException();
} catch (Exception e) {
marketEdge.value = 30;
return marketEdge;
} finally {
marketEdge.value = 50;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment