1 /*
2    Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License, version 2.0,
6    as published by the Free Software Foundation.
7 
8    This program is also distributed with certain software (including
9    but not limited to OpenSSL) that is licensed under separate terms,
10    as designated in a particular file or component or in included license
11    documentation.  The authors of MySQL hereby grant you an additional
12    permission to link the program and your derivative works with the
13    separately licensed software that they have included with MySQL.
14 
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License, version 2.0, for more details.
19 
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
23 */
24 
25 #ifndef ERRORHANDLINGMACROS_H
26 #define ERRORHANDLINGMACROS_H
27 
28 #include <ndbd_exit_codes.h>
29 #include "ErrorReporter.hpp"
30 
31 #define JAM_FILE_ID 489
32 
33 
34 #define ERROR_SET_SIGNAL(not_used, messageID, problemData, objectRef) \
35         ErrorReporter::handleError(messageID, problemData, objectRef, NST_ErrorHandlerSignal)
36 #define ERROR_SET(not_used, messageID, problemData, objectRef) \
37         ErrorReporter::handleError(messageID, problemData, objectRef)
38         // Description:
39         //      Call ErrorHandler with the supplied arguments. The
40         //      ErrorHandler decides how to report the error.
41         // Parameters:
42         //      messageID       IN      Code identifying the error. If less
43         //                              than 1000 a unix error is assumed. If
44         //                              greater than 1000 the code is treated
45         //                              as the specific problem code.
46         //      problemData     IN      A (short) text describing the error.
47         //                              The context information is added to
48         //                              this text.
49         //      objectRef       IN      The name of the "victim" of the error.
50         //                              Specify NULL if not applicable.
51         // Return value:
52         //      -
53         // Reported errors:
54         //      -
55         // Additional information:
56         //      -
57 
58 
59 #undef JAM_FILE_ID
60 
61 #endif
62