[erlang-questions] Edoc question - documenting multiple throws

Richard Carlsson richardc@REDACTED
Tue Jan 9 19:43:55 CET 2007


Ladislav Lenart wrote:
> How can I document a function that can throw multiple exceptions using edoc?
> I tried
>    %% @doc Bla.
>    %% @throws ex1
>    %% @throws ex2
> and
>    %% @doc Bla.
>    %% @throws ex1, ex2
> but none of them works.

You should use "|" or "+" as union separator.

> Union type, according to Type specifiactions, seems to support "," as a valid
> separator...

Nope.

	/Richard



More information about the erlang-questions mailing list