OpenAssetIO / usdOpenAssetIOResolver

An AR2 plugin that hosts OpenAssetIO
Apache License 2.0
24 stars 3 forks source link

[Core] Prevent exception propagation #19

Closed feltech closed 1 year ago

feltech commented 1 year ago

Part of #15. USD cannot handle exceptions being thrown during stage resolution and will terminate the application (sigabrt/segfault).

Best guess so far for the expected error behaviour is to return a default-constructed object (e.g. empty string, invalid timestamp, etc).

So add and use a decorator that will catch all exceptions and log them before returning a default-constructed object.