FrustbiteErrorCode enum
Result of every fallible Frustbite function.
New codes may be added in minor versions, so do not switch exhaustively over this without a default case.
Values
- success → const FrustbiteErrorCode
-
The operation succeeded.
const FrustbiteErrorCode(0) - invalidPath → const FrustbiteErrorCode
-
The provided path is empty, malformed, or refers to a non-existent file.
const FrustbiteErrorCode(1) - unsupportedFormat → const FrustbiteErrorCode
-
The audio format is not recognised or not supported by this build.
const FrustbiteErrorCode(2) - decodingError → const FrustbiteErrorCode
-
The audio bytes are corrupt or do not match the expected format.
const FrustbiteErrorCode(3) - ioError → const FrustbiteErrorCode
-
An underlying I/O operation (read/write) failed.
const FrustbiteErrorCode(4) - invalidPointer → const FrustbiteErrorCode
-
A handle or output pointer was null, or the handle has been freed.
const FrustbiteErrorCode(5) - invalidParameter → const FrustbiteErrorCode
-
A scalar parameter is out of range.
const FrustbiteErrorCode(6) - unknown → const FrustbiteErrorCode
-
An unclassified error occurred.
const FrustbiteErrorCode(99)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
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
-
fromValue(
int value) → FrustbiteErrorCode
Constants
-
values
→ const List<
FrustbiteErrorCode> - A constant List of the values in this enum, in order of their declaration.