MissingValueError
Defined in: src/attr/errors.ts:50
An attribute was given undefined or null as its value.
There is no such thing as an attribute with no value: an attribute either exists with a type, or is not set. The fix is always to leave the name out of the map rather than to write an empty value, so this is called out separately from UntypedValueError — the remedy is different.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MissingValueError(
input,attributeName?):MissingValueError
Defined in: src/attr/errors.ts:54
Parameters
Section titled “Parameters”null | undefined
attributeName?
Section titled “attributeName?”string
Returns
Section titled “Returns”MissingValueError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”attributeName
Section titled “attributeName”
readonlyattributeName:string|undefined
Defined in: src/attr/errors.ts:52
The attribute whose value was missing, when raised from an attribute map.