3 typedef long ErrorType
;
5 const ErrorType ErrorOne
= 0;
6 const ErrorType ErrorTwo
= 10;
7 const ErrorType ErrorThree
= 100;
12 union ErrorInfo
switch (ErrorType
)
14 case ErrorOne
: string errorstring
;
15 case ErrorTwo
: long errornumber
;
21 union ErrorInfo
switch (ErrorType
)
23 case ErrorThree
: string failstring
;
27 exception exceptionOne
29 union ExceptionUnion
switch (ErrorType
)
31 case ErrorThree
: string failstring
;
35 interface interfaceOne
{
36 void getstruct
(out structOne tester
) raises
(exceptionOne
);