00001 /*************************************************************************** 00002 * 00003 * Copyright (c) 2007-2010 Argo SE, Inc. All rights reserved. 00004 * 00005 * The following source code, and the ideas, expressions and concepts 00006 * incorporated therein, as well as the ideas, expressions and concepts of 00007 * any other material (whether tangible or intangible) disclosed in 00008 * conjunction with this source code, are the exclusive and proprietary 00009 * property, and constitutes confidential information, of Argo SE, Inc. 00010 * Accordingly, the user of this source code 00011 * agrees that it shall continue to be bound by the terms and conditions of 00012 * any and all confidentiality agreements executed with Argo SE, Inc. 00013 * concerning the disclosure of the source code and any other materials in 00014 * conjunction therewith. 00015 * 00016 */ 00017 00018 #pragma once 00019 00020 #include <string> 00021 #include <stdexcept> 00022 00023 00024 namespace RT 00025 { 00026 00028 struct RTException : public std::runtime_error 00029 { 00030 RTException( const std::string& msg) : std::runtime_error(msg){} 00031 }; 00032 00034 struct RTConnectionError : public RTException 00035 { 00036 RTConnectionError( const std::string& msg) : RTException("Connection Error: " + msg){} 00037 }; 00038 00040 struct RTRuntimeError : public RTException 00041 { 00042 RTRuntimeError( const std::string& msg) : RTException("RuntimeError: " + msg){} 00043 }; 00044 00045 } 00046