ZenohException class

Exception thrown when a zenoh operation fails.

Carries a human-readable message and the native returnCode from the zenoh-c API.

Implemented types

Constructors

ZenohException(String message, int returnCode)
Creates a ZenohException with the given message and returnCode.
ZenohException.enriched(String baseMessage, int returnCode, String? detail)
Creates a ZenohException carrying upstream detail alongside baseMessage.
factory

Properties

codeNames List<String>
Canon's own name(s) for returnCode, or empty when canon defines none.
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable description of the error.
final
returnCode int
Return code from the zenoh-c API (0 = success, negative = error).
final
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
The shipped rendering, plus canon's name(s) when there are any.
override

Operators

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