MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NdbErrorConst.java
1 /*
2  Copyright (c) 2010, 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 as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 /*
18  * NdbErrorConst.java
19  */
20 
21 package com.mysql.ndbjtie.ndbapi;
22 
23 import java.nio.ByteBuffer;
24 
25 import com.mysql.jtie.Wrapper;
26 
27 public interface /*_struct_*/ NdbErrorConst
28 {
29  public interface /*_enum_*/ Status
30  {
31  int Success = 0 /*_ndberror_st_success_*/,
32  TemporaryError = 1 /*_ndberror_st_temporary_*/,
33  PermanentError = 2 /*_ndberror_st_permanent_*/,
34  UnknownResult = 3 /*_ndberror_st_unknown_*/;
35  }
36  public interface /*_enum_*/ Classification
37  {
38  int NoError = 0 /*_ndberror_cl_none_*/,
39  ApplicationError = 1 /*_ndberror_cl_application_*/,
40  NoDataFound = 2 /*_ndberror_cl_no_data_found_*/,
41  ConstraintViolation = 3 /*_ndberror_cl_constraint_violation_*/,
42  SchemaError = 4 /*_ndberror_cl_schema_error_*/,
43  UserDefinedError = 5 /*_ndberror_cl_user_defined_*/,
44  InsufficientSpace = 6 /*_ndberror_cl_insufficient_space_*/,
45  TemporaryResourceError = 7 /*_ndberror_cl_temporary_resource_*/,
46  NodeRecoveryError = 8 /*_ndberror_cl_node_recovery_*/,
47  OverloadError = 9 /*_ndberror_cl_overload_*/,
48  TimeoutExpired = 10 /*_ndberror_cl_timeout_expired_*/,
49  UnknownResultError = 11 /*_ndberror_cl_unknown_result_*/,
50  InternalError = 12 /*_ndberror_cl_internal_error_*/,
51  FunctionNotImplemented = 13 /*_ndberror_cl_function_not_implemented_*/,
52  UnknownErrorCode = 14 /*_ndberror_cl_unknown_error_code_*/,
53  NodeShutdown = 15 /*_ndberror_cl_node_shutdown_*/,
54  SchemaObjectExists = 17 /*_ndberror_cl_schema_object_already_exists_*/,
55  InternalTemporary = 18 /*_ndberror_cl_internal_temporary_*/;
56  }
57  int/*_Status_*/ status();
58  int/*_Classification_*/ classification();
59  int code();
60  int mysql_code();
61  String/*_const char *_*/ message();
62 }