XTRY
    case XCODE
      // code body
      break;
    [case ERROR_1:
      // handler for ERROR_1
      break;
      // more handlers go here
     ...]
    default:
      // handle all other errors
      break;
    case XFINALLY:
      // finally handler
  XEND or XENDX

Example 4: The basic structure of an XTRY block.

Back to Article