title: how to handle exception in if condition pl/sql
body: <p>ineed your help when i wrote if else condition in plsql to check whether it is even or odd number using if conditopn . if i enter  character then it will raise an error.how to handle it using exceptions to understand client. help me </p>
  
  <pre><code>declare
  num number:=&amp;number;
  begin
  if num=1 then
  dbms_output.put_line('composite');
  else if mod(num,2)=0 then
  dbms_output.put_line('even');
  else if mod(num,2)=1 then
  dbms_output.put_line('odd');
  else
  dbms_output.put_line('enter proper data');
  end if;
  end if;
  end if;
  end;
  /
  </code></pre>