< prev index next >

src/java.desktop/share/native/libfreetype/include/freetype/fterrdef.h

Print this page


   1 /***************************************************************************/
   2 /*                                                                         */
   3 /*  fterrdef.h                                                             */
   4 /*                                                                         */
   5 /*    FreeType error codes (specification).                                */
   6 /*                                                                         */
   7 /*  Copyright 2002-2018 by                                                 */
   8 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
   9 /*                                                                         */
  10 /*  This file is part of the FreeType project, and may only be used,       */
  11 /*  modified, and distributed under the terms of the FreeType project      */
  12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
  13 /*  this file you indicate that you have read the license and              */
  14 /*  understand and accept it fully.                                        */
  15 /*                                                                         */
  16 /***************************************************************************/
  17 
  18 
  19   /*************************************************************************/
  20   /*                                                                       */
  21   /* <Section>                                                             */
  22   /*   error_code_values                                                   */
  23   /*                                                                       */
  24   /* <Title>                                                               */
  25   /*   Error Code Values                                                   */
  26   /*                                                                       */
  27   /* <Abstract>                                                            */
  28   /*   All possible error codes returned by FreeType functions.            */
  29   /*                                                                       */
  30   /* <Description>                                                         */
  31   /*   The list below is taken verbatim from the file `fterrdef.h'         */
  32   /*   (loaded automatically by including `FT_FREETYPE_H').  The first     */
  33   /*   argument of the `FT_ERROR_DEF_' macro is the error label; by        */
  34   /*   default, the prefix `FT_Err_' gets added so that you get error      */
  35   /*   names like `FT_Err_Cannot_Open_Resource'.  The second argument is   */
  36   /*   the error code, and the last argument an error string, which is not */
  37   /*   used by FreeType.                                                   */
  38   /*                                                                       */
  39   /*   Within your application you should *only* use error names and       */
  40   /*   *never* its numeric values!  The latter might (and actually do)     */
  41   /*   change in forthcoming FreeType versions.                            */
  42   /*                                                                       */
  43   /*   Macro `FT_NOERRORDEF_' defines `FT_Err_Ok', which is always zero.   */
  44   /*   See the `Error Enumerations' subsection how to automatically        */
  45   /*   generate a list of error strings.                                   */
  46   /*                                                                       */
  47   /*************************************************************************/
  48 
  49 
  50   /*************************************************************************/
  51   /*                                                                       */
  52   /* <Enum>                                                                */
  53   /*    FT_Err_XXX                                                         */
  54   /*                                                                       */
  55   /*************************************************************************/
  56 
  57   /* generic errors */
  58 
  59   FT_NOERRORDEF_( Ok,                                        0x00,
  60                   "no error" )
  61 
  62   FT_ERRORDEF_( Cannot_Open_Resource,                        0x01,
  63                 "cannot open resource" )
  64   FT_ERRORDEF_( Unknown_File_Format,                         0x02,
  65                 "unknown file format" )
  66   FT_ERRORDEF_( Invalid_File_Format,                         0x03,
  67                 "broken file" )
  68   FT_ERRORDEF_( Invalid_Version,                             0x04,
  69                 "invalid FreeType version" )
  70   FT_ERRORDEF_( Lower_Module_Version,                        0x05,
  71                 "module version is too low" )
  72   FT_ERRORDEF_( Invalid_Argument,                            0x06,
  73                 "invalid argument" )
  74   FT_ERRORDEF_( Unimplemented_Feature,                       0x07,
  75                 "unimplemented feature" )


   1 /****************************************************************************
   2  *
   3  * fterrdef.h
   4  *
   5  *   FreeType error codes (specification).
   6  *
   7  * Copyright (C) 2002-2019 by
   8  * David Turner, Robert Wilhelm, and Werner Lemberg.
   9  *
  10  * This file is part of the FreeType project, and may only be used,
  11  * modified, and distributed under the terms of the FreeType project
  12  * license, LICENSE.TXT.  By continuing to use, modify, or distribute
  13  * this file you indicate that you have read the license and
  14  * understand and accept it fully.
  15  *
  16  */
  17 
  18 
  19   /**************************************************************************
  20    *
  21    * @section:
  22    *  error_code_values
  23    *
  24    * @title:
  25    *  Error Code Values
  26    *
  27    * @abstract:
  28    *  All possible error codes returned by FreeType functions.
  29    *
  30    * @description:
  31    *  The list below is taken verbatim from the file `fterrdef.h` (loaded
  32    *  automatically by including `FT_FREETYPE_H`).  The first argument of the
  33    *  `FT_ERROR_DEF_` macro is the error label; by default, the prefix
  34    *  `FT_Err_` gets added so that you get error names like
  35    *  `FT_Err_Cannot_Open_Resource`.  The second argument is the error code,
  36    *  and the last argument an error string, which is not used by FreeType.
  37    *
  38    *  Within your application you should **only** use error names and
  39    *  **never** its numeric values!  The latter might (and actually do)
  40    *  change in forthcoming FreeType versions.
  41    *
  42    *  Macro `FT_NOERRORDEF_` defines `FT_Err_Ok`, which is always zero.  See
  43    *  the 'Error Enumerations' subsection how to automatically generate a
  44    *  list of error strings.
  45    *
  46    */

  47 
  48 
  49   /**************************************************************************
  50    *
  51    * @enum:
  52    *   FT_Err_XXX
  53    *
  54    */
  55 
  56   /* generic errors */
  57 
  58   FT_NOERRORDEF_( Ok,                                        0x00,
  59                   "no error" )
  60 
  61   FT_ERRORDEF_( Cannot_Open_Resource,                        0x01,
  62                 "cannot open resource" )
  63   FT_ERRORDEF_( Unknown_File_Format,                         0x02,
  64                 "unknown file format" )
  65   FT_ERRORDEF_( Invalid_File_Format,                         0x03,
  66                 "broken file" )
  67   FT_ERRORDEF_( Invalid_Version,                             0x04,
  68                 "invalid FreeType version" )
  69   FT_ERRORDEF_( Lower_Module_Version,                        0x05,
  70                 "module version is too low" )
  71   FT_ERRORDEF_( Invalid_Argument,                            0x06,
  72                 "invalid argument" )
  73   FT_ERRORDEF_( Unimplemented_Feature,                       0x07,
  74                 "unimplemented feature" )


< prev index next >