SynheartRuntimeException class
The native runtime is missing, unusable, or incompatible with this SDK.
Synheart.initialize throws it for
SynheartRuntimeErrorKind.incompatible only. The other kinds leave
initialisation degraded (no HSI) and are readable from
Synheart.runtimeError.
- Implemented types
Constructors
- SynheartRuntimeException({required SynheartRuntimeErrorKind kind, required String message, required String requiredAbi, required String recommendedVersion, required String installCommand, String? runtimeVersion, String? runtimeAbi, String? cause})
-
const
- SynheartRuntimeException.incompatible(RuntimeCompatResult compat)
-
Build the exception for a loaded runtime that
compatrefused.factory - SynheartRuntimeException.loadFailure(SynheartRuntimeErrorKind kind, {String? cause})
-
Build the exception for a runtime that failed to load.
factory
- SynheartRuntimeException.unidentified({String? cause})
-
Build the exception for a library that loaded but does not report its
build info: not a Synheart Core runtime, or a build without its C ABI.
factory
Properties
- cause → String?
-
Raw loader text, for support. Not meant for end users.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- installCommand → String
-
Exact shell command that installs recommendedVersion.
final
- kind → SynheartRuntimeErrorKind
-
final
- message → String
-
One plain sentence naming the versions involved and the fix.
final
- recommendedVersion → String
-
Runtime release to install.
final
- requiredAbi → String
-
ABI this SDK requires (
MAJOR.MINOR; the runtime must match MAJOR and be at least this MINOR).final - runtimeAbi → String?
-
Loaded runtime ABI (
MAJOR.MINOR), when it reported one.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- runtimeVersion → String?
-
Loaded runtime version, when one loaded and reported it.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited