1 /* Copyright (C) 1989, 1993, 1998 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: gserrors.h,v 1.4 2002/02/21 22:24:52 giles Exp $ */ 18 /* Error code definitions */ 19 20 #ifndef gserrors_INCLUDED 21 # define gserrors_INCLUDED 22 23 /* A procedure that may return an error always returns */ 24 /* a non-negative value (zero, unless otherwise noted) for success, */ 25 /* or negative for failure. */ 26 /* We use ints rather than an enum to avoid a lot of casting. */ 27 28 #define gs_error_unknownerror (-1) /* unknown error */ 29 #define gs_error_interrupt (-6) 30 #define gs_error_invalidaccess (-7) 31 #define gs_error_invalidfileaccess (-9) 32 #define gs_error_invalidfont (-10) 33 #define gs_error_ioerror (-12) 34 #define gs_error_limitcheck (-13) 35 #define gs_error_nocurrentpoint (-14) 36 #define gs_error_rangecheck (-15) 37 #define gs_error_typecheck (-20) 38 #define gs_error_undefined (-21) 39 #define gs_error_undefinedfilename (-22) 40 #define gs_error_undefinedresult (-23) 41 #define gs_error_VMerror (-25) 42 #define gs_error_unregistered (-29) 43 44 #define gs_error_hit_detected (-99) 45 46 #define gs_error_Fatal (-100) 47 48 #endif /* gserrors_INCLUDED */ 49