pub fn error_from_core(err: &Error) -> JsonRpcError
Map a typed core error onto the control-plane codes.