title: Can a single 'when' clause handle multiple exception types in oracle?
body: <p>Suppose I have a procedure as follows:</p>
  
  <pre><code>PROCEDURE proc_name (args)
  IS
  
    --  declarations
      ...
  BEGIN
  
      -- code
      ...
  EXCEPTION
  
      WHEN an_error THEN
  
          --error handling code
           ....
          WHEN another_error THEN
  
          -- error handling code, identical to the one for an_error
           ...
       WHEN others THEN
         ---generic error handling code`
         ....
  END;
  </code></pre>
  
  <p>Ideally, I would like to be able to catch both <code>an_error</code> and <code>another_error</code> in the same WHEN clause, since their handling is identical.</p>
  
  <p>Is this possible in Oracle? If not, what are other possibilities to avoid code duplication?</p>