Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Synchronous Virtual XHR Backed File System Usage

rajsite edited this pageOct 10, 2014 ·5 revisions

This article has moved from the wiki to the new site:topic here.

Pleaseupdate your bookmarks to the new site as this post will be deleted soon.

class MyGroup(ExceptionGroup):def derive(self, excs):return MyGroup(self.message, excs)

e = MyGroup("eg", [ValueError(1), TypeError(2)])e.add_note("a note")e.context = Exception("context")e.cause = Exception("cause")try:raise eexcept Exception as e:exc = e

match, rest = exc.split(ValueError)exc, exc.context, exc.cause, exc.notes

match, match.context, match.cause, match.notes

rest, rest.context, rest.cause, rest.notes

exc.traceback is match.traceback is rest.traceback

Qq12

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp