SQL> SET SERVEROUTPUT ON
SQL> DECLARE
  2  v_text  varchar2(100);
  3  BEGIN
  4   v_text := 'Hallo dikken';
  5   DBMS_OUTPUT.PUT_LINE(v_text);
  6  EXCEPTION
  7   WHEN others THEN
  8    DBMS_OUTPUT.PUT_LINE('We encountered an exception');
  9   RAISE;
 10  END;