43

bool success = false
if !success {
success = try()
}
if !success {
success = try()
}
if !success {
throw new GiveUpException()
}

Comments
  • 10
    If (!try () && !try ()) {
    throw new GiveUpException ()
    }
  • 2
    try {
    try();
    } catch (Exception e) {
    throw new GiveUpException("Okay maybe now give up...\n" + e.getMessage();
    }
  • 5
    .
    .
    .
    finally
    {
    try();
    }
  • 1
    Do()

    !=try
  • 0
    Funny...I've written code suspiciously like this when dealing with Microsoft's AppFabric
  • 2
    The definition of insanity is doing the same thing over and over again, but expecting different results

    :/
  • 0
    @Nexion but you should try again :(
  • 2
    Assigned function is not valid.
Add Comment