[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    [Boost-users]  [MSM] exception_caught question
From:       Christophe Henry via Boost-users <boost-users () lists ! boost ! org>
Date:       2017-06-10 17:20:32
Message-ID: CAGbA8qM69x+3WOcUEuSYNrwENuUz-vOhHaCm3nc691qwk0GB-Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,


> I found that answer for exceptions which can occur during the processing:
>
>https://lists.boost.org/boost-users/2012/03/73904.php
>
>Here is handled the case that exception is derived from std::exception.
>What happens if not?
>Can the parameter be changed to std::exception_ptr or just a
> template Parameter?

only std::exception are caught. Others just go through and interrupt the
transition, which might leave the state machine in a dirty state, where an
entry or exit action would not have been called.

Cheers,
Christophe

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi,</div><div><br><br>&gt;  I found that answer for exceptions \
which can occur during the processing:<br>&gt;</div><div>&gt;<a \
href="https://lists.boost.org/boost-users/2012/03/73904.php" target="_blank" \
rel="noreferrer">https://lists.boost.org/boost-<wbr>users/2012/03/73904.php</a><br>&gt;<br> \
&gt;Here is handled the case that exception is derived from \
std::exception.<br></div><div>&gt;What happens if not?</div><div>&gt;Can the \
parameter be changed to std::exception_ptr or just a </div><div>&gt; template \
Parameter?</div><div><br></div><div>only std::exception are caught. Others just go \
through and interrupt the transition, which might leave the state machine in a dirty \
state, where an entry or exit action would not have been \
called.</div><div><br></div><div>Cheers,</div><div>Christophe<span><span><br></span></span></div></div>




_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic