P panda Member Feb 26, 2004 #1 How can I throw a custom EOracleError with a specific error code and a specific message ?
Marco Kalter Administrator Staff member Feb 26, 2004 #1 You can use the CreateFmt constructor that is inherited from the base Exception class. For example: raise EOracleError.CreateFmt('My error', []);
You can use the CreateFmt constructor that is inherited from the base Exception class. For example: raise EOracleError.CreateFmt('My error', []);
P panda Member Mar 5, 2004 #1 OK, but how to code this in C++ Builder? And where where the Oracle error code is specified ?
Marco Kalter Administrator Staff member Mar 5, 2004 #1 In C++Builder you can throw the exception like this: throw(EOracleError("My error", 0)); You cannot set an error code though, you can only set the message.
In C++Builder you can throw the exception like this: throw(EOracleError("My error", 0)); You cannot set an error code though, you can only set the message.