Answered
cfcatch raise_application_error
Hello all,
I've defined a custom exception and message in a stored procedure and am attempting to display it to the user via the cfcatch object. The problem is that I'm unable to easily display the message since it doesn't appear to be easily referenced. For example, I have defined the message "This is an exception." but it is only available in cfcatch.detail and cfcatch.message is only a generic error. Is there a way to return this message without parsing?
Message: Error Executing Database Query.
NativeErrorCode: 20101
Detail: [Macromedia][Oracle JDBC Driver][Oracle]ORA-20101: This is an exception. ORA-06512: at "BLAH.BLAH", line 180 ORA-06512: at line 1
ExtendedInfo:
Type: Database
SQLState: HY000
Thanks!
I've defined a custom exception and message in a stored procedure and am attempting to display it to the user via the cfcatch object. The problem is that I'm unable to easily display the message since it doesn't appear to be easily referenced. For example, I have defined the message "This is an exception." but it is only available in cfcatch.detail and cfcatch.message is only a generic error. Is there a way to return this message without parsing?
Message: Error Executing Database Query.
NativeErrorCode: 20101
Detail: [Macromedia][Oracle JDBC Driver][Oracle]ORA-20101: This is an exception. ORA-06512: at "BLAH.BLAH", line 180 ORA-06512: at line 1
ExtendedInfo:
Type: Database
SQLState: HY000
Thanks!
