From 2bdef3c1229d5c492c0e574135b3ef4589647b2a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 16 Jan 2005 23:30:55 +0000 Subject: Rename the FieldError exception to DissectorError. Add a DISSECTOR_ASSERT() macro, which is the usual type of assertion macro, but throws a DissectorError exception with a message giving the flien and line number and the failed test as a string. Use that macro in "alloc_field_info()". Report that exception in the Info column and the protocol tree, as well as logging the exception failure with g_warning(). svn path=/trunk/; revision=13078 --- epan/exceptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/exceptions.h') diff --git a/epan/exceptions.h b/epan/exceptions.h index 343794382e..f8c7388786 100644 --- a/epan/exceptions.h +++ b/epan/exceptions.h @@ -12,7 +12,7 @@ #define BoundsError 1 /* Index is out of range */ #define ReportedBoundsError 2 /* Index is beyond reported length (not cap_len) */ #define TypeError 3 /* During dfilter parsing */ -#define FieldError 4 /* A buggy dissector tried to add a field with invalid parameters */ +#define DissectorError 4 /* A bug was detected in a dissector */ /* Usage: * -- cgit v1.2.3