Skip to main content

MESSAGE_FIELD

Constant MESSAGE_FIELD 

Source
pub const MESSAGE_FIELD: FieldSchema;
Expand description

message: String, the one field of the builtin Error struct.

The runtime has always built an Error with this field and served a read of it; the checker used to answer “Error has no field message” and suggest a method Error does not have. Declaring it here is what closed that gap.