File tree Expand file tree Collapse file tree
api/src/com/cloud/exception Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
3+ *
4+ * This software is licensed under the GNU General Public License v3 or later.
5+ *
6+ * It is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 3 of the License, or any later version.
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, see <http://www.gnu.org/licenses/>.
16+ *
17+ */
18+ package com .cloud .exception ;
19+
20+ import com .cloud .utils .SerialVersionUID ;
21+
22+ public class ConnectionException extends Exception {
23+
24+ private static final long serialVersionUID = SerialVersionUID .ConnectionException ;
25+ boolean _error ;
26+
27+ public ConnectionException (boolean setupError , String msg ) {
28+ this (setupError , msg , null );
29+ }
30+
31+ public ConnectionException (boolean setupError , String msg , Throwable cause ) {
32+ super (msg , cause );
33+ _error = setupError ;
34+
35+ }
36+
37+ public boolean isSetupError () {
38+ return _error ;
39+ }
40+
41+ }
You can’t perform that action at this time.
0 commit comments