v0.3.1-dev3
Pre-release
Pre-release
What's new
- Typed auth-failure surface.
AuthenticationFailureExceptionandConnectionAttemptFailedExceptionare now public top-level types. Consumers cancatchthem directly to distinguish auth failures from generic connection issues without inspecting the exception message string. The existing publicAuthenticationFailureevent continues to fire for callers that prefer the event-driven path.
This is a non-breaking change for the public API — both exception types were previously internal sealed and unreachable from outside the assembly, so no consumer can have been catching them by name before.
Why
Downstream consumers (StreamWeaver in particular) had to string-match Contains("auth") / Contains("credential") on ObsWebSocketException.Message to detect auth failures. Promoting the typed exceptions removes that fragility.