From 1a641936dad467bede96e95c32091fbf282fe683 Mon Sep 17 00:00:00 2001 From: Alex Huang Date: Tue, 26 Oct 2010 09:35:02 -0700 Subject: [PATCH] no more alert on setup --- .../cloud/exception/ConnectionException.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 api/src/com/cloud/exception/ConnectionException.java diff --git a/api/src/com/cloud/exception/ConnectionException.java b/api/src/com/cloud/exception/ConnectionException.java new file mode 100644 index 00000000000..02386a274b5 --- /dev/null +++ b/api/src/com/cloud/exception/ConnectionException.java @@ -0,0 +1,41 @@ +/** + * Copyright (C) 2010 Cloud.com, Inc. All rights reserved. + * + * This software is licensed under the GNU General Public License v3 or later. + * + * It is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ +package com.cloud.exception; + +import com.cloud.utils.SerialVersionUID; + +public class ConnectionException extends Exception { + + private static final long serialVersionUID = SerialVersionUID.ConnectionException; + boolean _error; + + public ConnectionException(boolean setupError, String msg) { + this(setupError, msg, null); + } + + public ConnectionException(boolean setupError, String msg, Throwable cause) { + super(msg, cause); + _error = setupError; + + } + + public boolean isSetupError() { + return _error; + } + +}