From 89ae81f651bfa112b8e07317eb6983beaf7cb212 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Sun, 11 Sep 2011 19:29:42 -0500 Subject: Initial import of exception handling code Import exception handling code from WSS, modified to fit into the fitz world. With this code we have 'real' fz_try/fz_catch/fz_rethrow functions, handling a fz_except type. We therefore rename the existing fz_throw/ fz_catch/fz_rethrow to be fz_error_make/fz_error_handle/fz_error_note. We don't actually use fz_try/fz_catch/fz_rethrow yet... --- fitz/filt_predict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fitz/filt_predict.c') diff --git a/fitz/filt_predict.c b/fitz/filt_predict.c index 94f2718a..17cfe905 100644 --- a/fitz/filt_predict.c +++ b/fitz/filt_predict.c @@ -154,7 +154,7 @@ read_predict(fz_stream *stm, unsigned char *buf, int len) { n = fz_read(state->chain, state->in, state->stride + ispng); if (n < 0) - return fz_rethrow(n, "read error in prediction filter"); + return fz_error_note(n, "read error in prediction filter"); if (n == 0) return p - buf; -- cgit v1.2.3