As of ColdFusion (2021 release), CORBA has been removed. You can no longer use CORBA-related features, functions, and tags.
Use the cftry and cfcatch tags to catch CORBA object method exceptions thrown by the remote server, as follows:
- Specify type="coldfusion.runtime.corba.CorbaUserException" in the cfcatch tag to catch CORBA exceptions.
- Use the cfcatch.getContents method to get the contents of the exception object.
The cfcatch.getContents method returns a ColdFusion structure containing the data specified by the IDL for the exception.
The following code example shows the IDL for a CORBA object that raises an exception defined by the PrimitiveException exception type definition, and the CFML that catches the exception and displays the contents of the object.
IDL |
|
|
CFML |
|