[erlang-questions] Distinguishing CORBA user and system exceptions
Niclas Eklund
nick@REDACTED
Fri Jan 26 16:05:10 CET 2007
Hello!
Not documented, but since you feel that such a function is usefull I've
added it; will be named orber:is_system_exception/1 and included in
the next release.
/Nick
On Fri, 26 Jan 2007, Dominic Williams wrote:
> Hello,
>
> Is there a simple way of distinguishing between user and
> system CORBA exceptions ?
>
> They both have the same form: {'EXCEPTION', E}, where E is a
> tuple (or record) whose first element is an atom.
>
> Neither of the options I see seems very satisfactory:
>
> - check whether the atom is one of the 36 or so system
> exceptions;
>
> - if the second element of the tuple looks like
> "IDL:Foo/Bar:1.0", we have a user exception;
>
> - if the exception is a 4-tuple whose last element is one of
> 'COMPLETED_NO', 'COMPLETED_YES', 'COMPLETED_MAYBE', we
> (probably) have a system exception.
>
> Am I missing something?
>
> Cheers,
>
> Dominic Williams
> http://www.dominicwilliams.net
>
> ----
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list