KScript docs
EN

error_type fields and methods

A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).

Fields

FieldTypeDescription
.descriptionstringWhat the error type is for, or null.
.extendsstringThe error type it extends, or null.
.fieldslistThe error's fields (its own and the ones it inherits): name, type, optional and description.
.namestringThe error type's name.
.statusnumberThe HTTP status errors of this type carry, such as 404, or null.

Methods from any