aboutsummaryrefslogtreecommitdiffstats
path: root/epan/exceptions.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-16 23:30:55 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-16 23:30:55 +0000
commit2bdef3c1229d5c492c0e574135b3ef4589647b2a (patch)
tree598e354d8cb4cd7006ea802dd45aa74e027b5454 /epan/exceptions.h
parent13bf5539af20a4c372bbcb58c0a0f8d051ab3dbc (diff)
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
Diffstat (limited to 'epan/exceptions.h')
-rw-r--r--epan/exceptions.h2
1 files changed, 1 insertions, 1 deletions
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:
*