MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClusterJDatastoreException.java
1 /*
2  Copyright 2010 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 package com.mysql.clusterj;
20 
26 
27  private static final long serialVersionUID = 2208896230646592560L;
28 
29  @SuppressWarnings("unused")
30  private int code = 0;
31  @SuppressWarnings("unused")
32  private int mysqlCode = 0;
33  private int status = 0;
34 
35  public int getStatus() {
36  return status;
37  }
38 
39  private int classification = 0;
40 
41  public int getClassification() {
42  return classification;
43  }
44 
46  super(message);
47  }
48 
49  public ClusterJDatastoreException(String message, Throwable t) {
50  super(message, t);
51  }
52 
53  public ClusterJDatastoreException(Throwable t) {
54  super(t);
55  }
56 
57  public ClusterJDatastoreException(String msg, int code, int mysqlCode,
58  int status, int classification) {
59  super(msg);
60  this.code = code;
61  this.mysqlCode = mysqlCode;
62  this.status = status;
63  this.classification = classification;
64  }
65 
66 }