|
Boost Users : |
Subject: Re: [Boost-users] [System]
From: Geoff Shannon (geoffpshannon_at_[hidden])
Date: 2013-08-13 20:58:19
On Tuesday, August 13, 2013, Leo Carreon wrote:
> Hi Geoff,
>
> If Im not mistaken, std:[image: Confused smile]ystem_error was derived
> from Boost.
>
> This being the case, you create an exception like this:
>
> #include <system_error>
> .
> .
> .
> throw system_error(errno, system_category(), whatever message);
>
> AFAIK, you can also use generic_category() is you are dealing with POSIX
> error codes.
>
> I hope this helps.
>
> Regards,
> Leo
>
Thanks Leo, I actually just finally stumbled on the source comment that
mentions the critical system_category that I was missing.
-- Geoff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net