title: Oracle Apex error handling
body: <p>I have a textbox (tb_pcode) that user must enter the personnel code. This is a part of my code :</p>
  
  <pre><code>   declare
        n varchar2(20);
     begin
        select name into n
        from pers e
        where e.pcode = :tb_pcode;
      exception 
      when no_data_found then
          apex_error.add_error (
          p_message          =&gt; 'No person found!',
          p_display_location =&gt; apex_error.c_inline_in_notification );
      end;
  </code></pre>
  
  <p>but this lines ignore at all and no message display.</p>
  
  <pre><code>    apex_error.add_error (
      p_message          =&gt; 'No person found!',
      p_display_location =&gt; apex_error.c_inline_in_notification );
  </code></pre>
  
  <p>Why?!</p>