title: Catching user-defined Oracle exceptions in VB.NET
body: <p>I have a stored procedure in Oracle that throws a user-defined error using RAISE_APPLICATION_ERROR in certain situations. The user-defined error code is -20000.</p>
  
  <p>I am calling the stored procedure from an ASP.NET application using VB.NET, and I would like to catch this specific error and display a custom error message, however VB.NET is catching the error number as 20000, not -20000.</p>
  
  <p>Is there a different way to catch this error or a better way to go about this? Thanks!</p>