Back to index

lightning-sunbird  0.9+nobinonly
txError.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is TransforMiiX XSLT processor code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Axel Hecht.
00019  * Portions created by the Initial Developer are Copyright (C) 2001
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Axel Hecht <axel@pike.org>
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either the GNU General Public License Version 2 or later (the "GPL"), or
00027  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 #ifndef __TX_ERROR
00040 #define __TX_ERROR
00041 
00042 /*
00043  * Error value mockup for standalone.
00044  * See nsError.h for details.
00045  */
00046 
00047 #include "nsError.h"
00048 
00049 #define NS_ERROR_XPATH_INVALID_ARG         NS_ERROR_INVALID_ARG
00050 
00051 #define NS_XSLT_GET_NEW_HANDLER                        \
00052     NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_XSLT, 1)
00053 
00054 #define NS_ERROR_XSLT_PARSE_FAILURE                    \
00055     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 1)
00056 
00057 #define NS_ERROR_XPATH_PARSE_FAILURE                   \
00058     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 2)
00059 
00060 #define NS_ERROR_XSLT_ALREADY_SET                      \
00061     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 3)
00062 
00063 #define NS_ERROR_XSLT_EXECUTION_FAILURE                \
00064     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 4)
00065 
00066 #define NS_ERROR_XPATH_UNKNOWN_FUNCTION                \
00067     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 5)
00068 
00069 #define NS_ERROR_XSLT_BAD_RECURSION                    \
00070     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 6)
00071 
00072 #define NS_ERROR_XSLT_BAD_VALUE                        \
00073     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 7)
00074 
00075 #define NS_ERROR_XSLT_NODESET_EXPECTED                 \
00076     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 8)
00077 
00078 #define NS_ERROR_XSLT_ABORTED                          \
00079     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 9)
00080 
00081 #define NS_ERROR_XSLT_NETWORK_ERROR                    \
00082     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 10)
00083 
00084 #define NS_ERROR_XSLT_WRONG_MIME_TYPE                  \
00085     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 11)
00086 
00087 #define NS_ERROR_XSLT_LOAD_RECURSION                   \
00088     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 12)
00089 
00090 #define NS_ERROR_XPATH_BAD_ARGUMENT_COUNT              \
00091     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 13)
00092 
00093 #define NS_ERROR_XPATH_BAD_EXTENSION_FUNCTION          \
00094     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 14)
00095 
00096 #define NS_ERROR_XPATH_PAREN_EXPECTED                  \
00097     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 15)
00098 
00099 #define NS_ERROR_XPATH_INVALID_AXIS                    \
00100     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 16)
00101 
00102 #define NS_ERROR_XPATH_NO_NODE_TYPE_TEST               \
00103     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 17)
00104 
00105 #define NS_ERROR_XPATH_BRACKET_EXPECTED                \
00106     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 18)
00107 
00108 #define NS_ERROR_XPATH_INVALID_VAR_NAME                \
00109     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 19)
00110 
00111 #define NS_ERROR_XPATH_UNEXPECTED_END                  \
00112     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 20)
00113 
00114 #define NS_ERROR_XPATH_OPERATOR_EXPECTED               \
00115     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 21)
00116 
00117 #define NS_ERROR_XPATH_UNCLOSED_LITERAL                \
00118     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 22)
00119 
00120 #define NS_ERROR_XPATH_BAD_COLON                       \
00121     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 23)
00122 
00123 #define NS_ERROR_XPATH_BAD_BANG                        \
00124     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 24)
00125 
00126 #define NS_ERROR_XPATH_ILLEGAL_CHAR                    \
00127     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 25)
00128 
00129 #define NS_ERROR_XPATH_BINARY_EXPECTED                 \
00130     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 26)
00131 
00132 #define NS_ERROR_XSLT_LOAD_BLOCKED_ERROR               \
00133     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 27)
00134 
00135 #define NS_ERROR_XPATH_INVALID_EXPRESSION_EVALUATED    \
00136     NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XSLT, 28)
00137 
00138 #endif // __TX_ERROR