]> review.fuel-infra Code Review - packages/trusty/mysql-wsrep-5.6.git/blob
b12fdf55b25f788edf123d7b4e0cf0f6869bcaa4
[packages/trusty/mysql-wsrep-5.6.git] /
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
21 /**
22  * ClusterJUserException represents a database error. The underlying cause
23  * of the exception is contained in the "cause".
24  */
25 public class ClusterJDatastoreException extends ClusterJException {
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
45     public ClusterJDatastoreException(String message) {
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 }