data = xbt_dict_get(head,"Can't be found");
THROW1(unknown_error,0,"Found something which shouldn't be there (%s)",data);
} CATCH(e) {
- if (e.category == mismatch_error) {
- xbt_ex_free(e);
- } else {
+ if (e.category != not_found_error)
RETHROW;
- }
+ xbt_ex_free(e);
}
}
TRY {
debuged_remove(head,"Does not exist");
} CATCH(e) {
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e);
}
TRY {
debuged_remove(head,"12346");
} CATCH(e) {
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e); traverse(head);
}
TRY {
debuged_remove(head,"12346");
} CATCH(e) {
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e); traverse(head);
}