//exception.idl // Exception example - Weather Service module Module4{
package Module4; public final class NoReportForCity extends org.omg.CORBA.UserException{ public.java.lang String closestKnownCity; public NoReportForCity(){} public NoReportForCity(java.lang.String closestKnownCity){ this.closestKnownCity = closestKnownCity; } }The member closestKnownCity is mapped to a corresponding public field and an argument to the full constructor.