Subversion Repositories Kolibri OS

Rev

Rev 3584 | Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. /** \file
  20.  * Error codes
  21.  */
  22.  
  23. #ifndef NETSURF_UTILS_ERRORS_H_
  24. #define NETSURF_UTILS_ERRORS_H_
  25.  
  26. /**
  27.  * Enumeration of error codes
  28.  */
  29. typedef enum {
  30.         NSERROR_OK,                     /**< No error */
  31.  
  32.         NSERROR_UNKNOWN,                /**< Unknown error - DO *NOT* USE */
  33.  
  34.         NSERROR_NOMEM,                  /**< Memory exhaustion */
  35.  
  36.         NSERROR_NO_FETCH_HANDLER,       /**< No fetch handler for URL scheme */
  37.  
  38.         NSERROR_NOT_FOUND,              /**< Requested item not found */
  39.  
  40.         NSERROR_SAVE_FAILED,            /**< Failed to save data */
  41.  
  42.         NSERROR_CLONE_FAILED,           /**< Failed to clone handle */
  43.  
  44.         NSERROR_INIT_FAILED,            /**< Initialisation failed */
  45.  
  46.         NSERROR_MNG_ERROR,              /**< An MNG error occurred */
  47.  
  48.         NSERROR_BAD_ENCODING,           /**< The character set is unknown */
  49.  
  50.         NSERROR_NEED_DATA,              /**< More data needed */
  51.  
  52.         NSERROR_ENCODING_CHANGE,        /**< The character changed */
  53.  
  54.         NSERROR_BAD_PARAMETER,          /**< Bad Parameter */
  55.  
  56.         NSERROR_INVALID,                /**< Invalid data */
  57.  
  58.         NSERROR_BOX_CONVERT,            /**< Box conversion failed */
  59.  
  60.         NSERROR_STOPPED,                /**< Content conversion stopped */
  61.  
  62.         NSERROR_DOM,                    /**< DOM call returned error */
  63.  
  64.         NSERROR_CSS,                    /**< CSS call returned error */
  65.  
  66.         NSERROR_CSS_BASE,               /**< CSS base sheet failed */
  67.  
  68.         NSERROR_BAD_URL                 /**< Bad URL */
  69. } nserror;
  70.  
  71. #endif
  72.  
  73.