builtIn static method
Creates an error object from the code, with an auto-populated message.
Implementation
static RpcError builtIn(int errorCode, {String? data}) {
return RpcError(
message: errorMessages[errorCode] ?? 'Unknown error',
code: errorCode,
data: data,
);
}