Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] Hoe to depress boost::filesystem::basic_directory_iterator constructor?
From: Max (more4less_at_[hidden])
Date: 2009-04-29 09:20:25


Hello Ovanes,

Thanks for your reply.

You means like this?

        catch ( const fs::basic_filesystem_error<fs::path>& e )
        {
                // transform e.what() to a new string by search and replace
                // rethrow an exception
        }

That would be ok for this single case. But who knows if there's other
similar cases that need this similar hand-written code processing?
I want to depress the similar message in a uniform way.

B/Rgds
Max

From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Ovanes Markarian
Sent: Wednesday, April 29, 2009 8:49 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [filesystem] Hoe to depress
boost::filesystem::basic_directory_iterator constructor?

Hi!

what about catching the exception and rethrowing your own one?

Greetings,
Ovanes


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