Commit 692b54f
feat: expose JobFailedException and JobCancelledException at the top level
Both were previously reachable only via
`tableauserverclient.server.endpoint.exceptions`, which is an internal
module path. Callers waiting on a background job with
`server.jobs.wait_for_job()` need to catch these to distinguish a
failed job from a cancelled one (JobCancelledException is a subclass
of JobFailedException, so the order in an except-chain matters), and
reaching into a `server.endpoint` sub-package to do so is a bad
pattern to teach.
Re-export them alongside the other exception types already exposed at
the top level (FailedSignInError, MissingRequiredFieldError,
NotSignedInError, ServerResponseError). Existing internal imports in
tests and endpoints remain unchanged; this is purely additive.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dba5cd1 commit 692b54f
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
0 commit comments