Java Equivalent to VB6 Error Handling

VB allows VB6-style error handling for compatibility purposes.
Some elements of VB6 error handling can be converted to try/catch
blocks. Items that cannot be converted and must be
addressed via refactoring are: On Error Resume Next,
Resume, Resume Next, On Error GoTo -1, and
references to the Err object.