ErrorCode.h

Go to the documentation of this file.
00001 //**********************************************************************
00002 //
00003 //  REGCOM: Regimental Command
00004 //  Copyright (C) 2008 Randi J. Relander
00005 //    <rjrelander@users.sourceforge.net>
00006 //
00007 //  This program is free software; you can redistribute it and/or
00008 //  modify it under the terms of the GNU General Public License
00009 //  as published by the Free Software Foundation; either version 3
00010 //  of the License, or (at your option) any later version.
00011 //  
00012 //  This program is distributed in the hope that it will be useful,
00013 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 //  GNU General Public License for more details.
00016 //  
00017 //  You should have received a copy of the GNU General Public
00018 //  License along with this program.  If not, see 
00019 //  <http://www.gnu.org/licenses/>.
00020 //  
00021 //**********************************************************************
00022 
00023 #ifndef REGCOM_COMMON_ERROR_CODE_H
00024 #define REGCOM_COMMON_ERROR_CODE_H
00025 
00026 namespace regcom {
00027 namespace common {
00028 
00030 //  CLASS: ErrorCode
00036 class ErrorCode
00037 {
00038 public:
00039 
00040     // PUBLIC ENUMERATIONS
00041 
00043     enum ErrorCodeEnumeration
00044     {
00045         Success,            
00046         Failure,            
00047 
00048         MissingArgument,    
00049         InvalidState,       
00050         InvalidUsername,    
00051         InvalidPassword     
00052     };
00053 };
00054 
00056 typedef ErrorCode::ErrorCodeEnumeration ErrorCodeType;
00057 
00058 } // namespace common
00059 } // namespace regcom
00060 
00061 #endif