Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] Hoe to depress boost::filesystem::basic_directory_iterator constructor?
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2009-04-29 08:48:48


Hi!

what about catching the exception and rethrowing your own one?

Greetings,
Ovanes

On Wed, Apr 29, 2009 at 2:29 PM, Max <more4less_at_[hidden]> wrote:

> Hello list,
>
> I'm using fs::recursive_directory_iterator(path), when the path
> given by 'path' does not exist, an exception will be thown with the
> message similar to the following:
>
> error: boost::filesystem::basic_directory_iterator constructor: the given
> directory not found: "any\path\that\does\not\exist"
>
> I want to depress the part that is added by the lib:
>
> " boost::filesystem::basic_directory_iterator constructor:"
>
>
> How can I do? I've searched the archive and the doc but not
> found an answer.
>
> Thanks for help.
>
> B/Rgds
> Max
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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