diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-16 23:30:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-16 23:30:55 +0000 |
commit | 2bdef3c1229d5c492c0e574135b3ef4589647b2a (patch) | |
tree | 598e354d8cb4cd7006ea802dd45aa74e027b5454 /epan/exceptions.h | |
parent | 13bf5539af20a4c372bbcb58c0a0f8d051ab3dbc (diff) | |
download | wireshark-2bdef3c1229d5c492c0e574135b3ef4589647b2a.tar.gz wireshark-2bdef3c1229d5c492c0e574135b3ef4589647b2a.tar.bz2 wireshark-2bdef3c1229d5c492c0e574135b3ef4589647b2a.zip |
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.h | 2 |
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: * |