Skip to content

Braga has been retired. The next public testnet is coming in September 2026. Read the announcement →

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.

  • Error

new MissingValueError(input, attributeName?): MissingValueError

Defined in: src/attr/errors.ts:54

null | undefined

string

MissingValueError

Error.constructor

readonly attributeName: string | undefined

Defined in: src/attr/errors.ts:52

The attribute whose value was missing, when raised from an attribute map.