JavaException class
A Java throwable that crossed into Dart.
The Java-side exception is always cleared before this is thrown: JNI forbids almost every call while an exception is pending, so leaving it set would poison the next unrelated call with a confusing failure.
- Implemented types
Constructors
- JavaException({required String className, required String? message, String? stackTraceText})
Properties
- className → String
-
Fully-qualified Java class name, e.g.
java.lang.ArithmeticException.final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
The throwable's
getMessage(), ornullwhen it carries none.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTraceText → String?
-
The Java stack trace, when it could be captured.
final
Methods
-
isA(
String name) → bool -
truewhen className matches, or is a subclass name ending in,name. -
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