SQLERRM and User Defined Exceptions in PL/SQL
Ok here is the question. I am writing procedures for APEX in which I have found the need to use exceptions I define and raise myself. However, I want to manually control SQLERRM for those exceptions to assign it a meaningful message so that I can just show the SQLERRM in APEX. I don't want to reassign it to another ORA code, I just want to manually tell the exception what to return for SQLERRM instead of returning a pre-defined ORA error or just returning 'User Defined Exception'.
Can this be done and how?
I have been looking through information that I have and I have yet to find anything on how to set the sqlerrm text for a user defined exception.