RormError.opCast

Returns false only when there is no error, otherwise true.

Examples

void myCallback(Handle data, Error error) {
    if (error) throw error.makeException;
    // only start using `data` from this point on
}

Meta