YamuxExceptionHandler class

Utility class for handling Yamux exceptions

Constructors

YamuxExceptionHandler.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

classifyYamuxException(dynamic exception, StackTrace? stackTrace, {int? streamId, String? operation, String? currentState, Map<String, dynamic>? context}) YamuxException
Classifies and wraps exceptions that occur in Yamux operations
handleYamuxOperation<T>(Future<T> operation(), {int? streamId, String? operationName, String? currentState, Map<String, dynamic>? context}) Future<T>
Safely executes a Yamux operation with comprehensive exception handling
isRecoverable(YamuxException exception) bool
Determines if a Yamux exception represents a recoverable error
shouldResetStream(YamuxException exception) bool
Determines if a Yamux exception should trigger stream reset