Not sure I understand your question, but assuming it throws, I'd guess it
throws an Exception object (exact class depends on the namespace)
containing a message like:

* when value is 0:  "Not a valid syslog value: "
* when value is 1:  "ot a valid syslog value: "
* when value is 100:  whatever is in RAM starting 100 characters past the
start of the literal, or a segfault if that location (through to the next
NULL terminator) is not accessible to the program.

As that what you were getting at? ;)

pc
----
http://colby.id.au


On Sat, Jun 23, 2012 at 8:06 AM, Andrew Stitcher <[email protected]>wrote:

> Code just noticed in the Qpid C++ codebase:
>
>    string name(int value) const {
>        ByValue::const_iterator i = byValue.find(value);
>        if (i == byValue.end())
>            throw Exception("Not a valid syslog value: " + value);
>        return i->second;
>    }
>
> Assuming that this function throws an exception what exception does it
> throw?
>
> When value is 0? value is 1? value is 100?
>
> Andrew
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to