Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: new rule

...

A simple compliant solution is to catch any exceptions thrown by foo{}

Code Block
bgColor#FFcccc#ccccff
void bar() throw (exception1) {
  try {
    foo();
  } catch (...) {
    // handle error, without re-throwing it
  }
}

...