| http://www.w3.org/ns/prov#value | - ap the exception228 if not isinstance(e, UserError):229 raise e230 handle_error(e)231 </pre> --></li>232233 <li>You can trap multiple types of exceptions by simply calling trap234 with multiple arguments, e.g. <code>failure.trap(UserError, OtherUserError)</code></li>235</ul>236237<p>Omitting the trap declaration is equivalent to a catch-all238except block:</p>239240<table class=compare>241 <tr>2
|