2.11.2
(fix): Change core files to fully qualify references to Attribute and related types in case of name collision.
2.11.1
(fix): When include-exception-handler: true is configured:
- Remove unneeded
CaptureExceptionmethod fromInterceptorclass, since there’s already anInterceptmethod.
2.11.0
(feat): Add constructor exception handling infrastructure for SDK authors to capture initialization errors.
When include-exception-handler: true is configured:
- Adds
CaptureExceptionmethod toExceptionHandlerclass for capturing exceptions without re-throwing - Wraps all client constructors (root and sub-clients) with try-catch blocks
- Initializes
clientOptions.ExceptionHandlerwith a custom interceptor in the root client constructor - Generates a
{PackageName}ExceptionInterceptorstub class that SDK authors can customize
New configuration option:
exception-interceptor-class-name: Custom name for the exception interceptor class (optional)
Example generators.yml configuration:
SDK authors can implement their exception capturing logic (e.g., application monitoring platform, logging) in the generated interceptor class.