Commit 9ab9aaa
committed
fix: Restore parsed_exception access for backward compatibility
Reverted breaking change - parsed_exception is now accessible again.
This makes the changes purely additive with zero breaking changes.
What works (backward compatible):
- e.parsed_exception.code - Still works!
- e.parsed_exception.message - Still works!
- e.header.get('fga-request-id') - Still works!
What's new (additive):
- e.code - Convenience property
- e.error_message - Convenience property
- e.request_id - Convenience property
- e.store_id - Convenience property
- e.authorization_model_id - Convenience property
- e.operation_name - Auto-extracted from telemetry
- e.is_validation_error() - Helper method
- e.is_retryable() - Helper method
- etc.
Tests: 21 unit tests passing1 parent 8a87135 commit 9ab9aaa
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 175 | + | |
179 | 176 | | |
180 | 177 | | |
181 | 178 | | |
| |||
0 commit comments