Skip to main content

ERROR

Constant ERROR 

Source
pub const ERROR: BuiltinSchema;
Expand description

Error, the builtin error struct.

It is a namespace because a program writes the name — Error("message") builds one — so a mistyped Error.something() should be told what Error is rather than that the name is undeclared. There is nothing to call on it: the message is read as a field, and MESSAGE_FIELD is that field.