title: plsql pass failure back to executing job
body: <p>I have a scheduled job in oracle that runs plsql code.  I will like to be able to mark the scheduled job as failed if scheduled occur within the code, but I have failed with my googling skills.</p>
  <p>So</p>
  <pre><code>if a = b then
  return (and get the code to fail)
  end if;
  </code></pre>
  <p>I assume I am missing something very obvious but cannot find it anywhere.</p>
  <p>Thanks</p>