LDErrorKind enum

Enumerated type defining the defined error cases for an LDEvaluationReason with the kind LDKind.error.

This field can be retrieved from an LDEvaluationReason with the kind LDKind.error through the LDEvaluationReason.errorKind property.

Inheritance

Constructors

LDErrorKind(String _value)
const

Values

clientNotReady → const LDErrorKind

Indicates that the caller tried to evaluate a flag before the client had successfully initialized.

const LDErrorKind('CLIENT_NOT_READY')
flagNotFound → const LDErrorKind

Indicates that the caller provided a flag key that did not match any known flag.

const LDErrorKind('FLAG_NOT_FOUND')
malformedFlag → const LDErrorKind

Indicates that there was an internal inconsistency in the flag data, e.g. a rule specified a non-existent variation.

const LDErrorKind('MALFORMED_FLAG')
userNotSpecified → const LDErrorKind

Indicates that the caller passed null for the context parameter, or the context lacked a key. This enum name is an artifact of user being the predecessor to context.

const LDErrorKind('USER_NOT_SPECIFIED')
wrongType → const LDErrorKind

Indicates that the result value was not of the requested type, e.g. you called LDClient.boolVariationDetail but the flag value was an int.

const LDErrorKind('WRONG_TYPE')
exception → const LDErrorKind

Indicates that an unexpected exception stopped flag evaluation.

const LDErrorKind('EXCEPTION')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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
A string representation of this object.
override

Operators

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

Static Methods

fromString(String value) LDErrorKind

Constants

values → const List<LDErrorKind>
A constant List of the values in this enum, in order of their declaration.