VapiError class
The base error class for all Vapi-related errors.
This class is used to represent errors that are related to the Vapi SDK itself, such as programming mistakes or violations of SDK contracts. These are not exceptions caused by user actions or runtime failures, but rather indicate that something is wrong in the SDK usage or implementation.
Prefer using VapiError for errors that are not expected to be caught during normal execution, and that indicate a bug or misconfiguration in the code. For recoverable or user-caused issues, use exceptions instead.
- Inheritance
- Implementers
Constructors
- VapiError.new(String message, [dynamic details])
-
Creates a new VapiError with the given
message
and optionaldetails
.
Properties
- details → dynamic
-
Optional additional details about the error.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable message describing the error.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited