Skip to content

Commit 1a64193

Browse files
author
Alex Huang
committed
no more alert on setup
1 parent 2bc938c commit 1a64193

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

0 commit comments

Comments
 (0)