I want to print the sqlstate and sql message error when for example there\'s a null violation:
EXCEPTION WHEN not_null_violation THEN narticlesp:=0;