Language Mapping for Exceptions
  • IDL exceptions are mapped almost similarly to structs.
    • The BidTooLow exception from the Auction system looks like:
        exception BidTooLow
        {
            Amount minimum;
        };
        
    • This is mapped to the struct shown in Code Sample 7
    • Exceptions extend CORBA::UserException
    • Each field of the IDL exception is mapped to a corresponding field of the struct
    • The usual array of constructors and operators are present
    • A number of implementation specific methods were eliminated from the code as shown

Next Slide >>