How do I ignore an exception?

Viewed 15535

Is there more elegant way to write the following?

try {
    ... // Some throwing code
    return first
} 
catch {
    case e:ExceptionType => {} // No code to execute. Ignore error.
}
return second
4 Answers
Related