00001 00002 // 00003 // Title : BaseError.h 00004 // Project : OSCAR Version 2.0 00005 // Created : 00006 // Author : Chetan Kapoor 00007 // Platforms : 00008 // Copyright : Copyright The University of Texas at Austin, 2002. All rights reserved. 00009 // 00010 // This software and documentation constitute an unpublished work 00011 // and contain valuable trade secrets and proprietary information 00012 // belonging to the University. None of the foregoing material may be 00013 // copied or duplicated or disclosed without the express, written 00014 // permission of University. THE UNIVERSITY EXPRESSLY DISCLAIMS ANY 00015 // AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, 00016 // INCLUDING ANY WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 00017 // PARTICULAR PURPOSE, AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY 00018 // THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. 00019 // NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF 00020 // THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall the 00021 // University be liable for incidental, special, indirect, direct or 00022 // consequential damages or loss of profits, interruption of business, 00023 // or related expenses which may arise from use of software or documentation, 00024 // including but not limited to those resulting from defects in software 00025 // and/or documentation, or loss or inaccuracy of data of any kind. 00026 // 00027 // Purpose: This file defines the errors specific to the Base domain. 00028 // 00029 //------------------------------------------------------------------------------ 00030 // 00031 // $Revisions$ 00032 // 00033 // 3/23/01 - modified OSCARError to a class that contains string 00034 // descriptions of the errors 00035 // 00036 // $Log: BaseError.h,v $ 00037 // Revision 1.7 2005/03/14 21:50:06 pmarch 00038 // Added to namespace OSCAR and removed "RR" from front of class names. 00039 // 00040 // Revision 1.6 2004/07/19 18:18:06 djung 00041 // added new-line at end of file 00042 // 00043 // Revision 1.5 2004/07/19 16:32:59 edjung 00044 // -made fix to constructors for ANSI C++ compliance with temporary OSCARError objects 00045 // -added DUMMY_ERROR class 00046 // 00047 // Revision 1.4 2004/05/26 19:40:08 pmarch 00048 // no message 00049 // 00050 // Revision 1.2 2003/09/05 15:36:19 eswint 00051 // - Changed default arguments OSCARError(0,"No Error"...) to OSCARError(noError) and String(" ") to String("") 00052 // - Commented, format 00053 // 00054 // Revision 1.1 2003/08/14 16:20:23 pmarch 00055 // Added files to module 00056 // 00057 // 00059 #ifndef Error_hpp 00060 #define Error_hpp 00061 00062 #include "OSCARError.h" 00063 00064 00066 namespace OSCAR { 00073 extern const OSCARError noError; 00074 00081 extern const OSCARError notSupported; 00082 00089 extern const OSCARError notInitialized; 00090 00091 00092 template <class err_t> 00093 err_t& DUMMY_ERROR(const err_t& theError ) { 00094 static err_t dummy_error = theError; 00095 return dummy_error; 00096 } 00097 00098 } 00099 00100 #endif //end of #ifndef Error_hpp
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |