msgtype = (gras_msgtype_t)xbt_set_get_by_name(_gras_msgtype_set,namev);
found = 1;
} CATCH(e) {
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e);
}
static gras_datadesc_type_t string_type=NULL;
if (!msgtype)
- THROW0(mismatch_error,0,
+ THROW0(arg_error,0,
"Cannot send the NULL message (did msgtype_by_name fail?)");
if (!string_type) {
TRY {
gras_trp_chunk_recv(sock, header, 6);
} CATCH(e) {
- THROW2(e.category,e.value,
- "Exception caught while trying to get the mesage header on socket %p : %s",
- sock,e.msg);
+ RETHROW1("Exception caught while trying to get the mesage header on socket %p : %s",
+ sock);
}
for (cpt=0; cpt<4; cpt++)
}
}
+ /* FIXME: gras_datadesc_free not implemented => leaking the payload */
THROW1(mismatch_error,0,
"Message '%s' refused by all registered callbacks", msgtype->name);
}