rl_Exception.cc

00001 // --8<--8<--8<--8<--
00002 //
00003 // Copyright (C) 2007 Smithsonian Astrophysical Observatory
00004 //
00005 // This file is part of rl_raylib
00006 //
00007 // rl_raylib 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 2
00010 // of the License, or (at your option) any later version.
00011 //
00012 // rl_raylib 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 License
00018 // along with this program; if not, write to the 
00019 //       Free Software Foundation, Inc. 
00020 //       51 Franklin Street, Fifth Floor
00021 //       Boston, MA  02110-1301, USA
00022 //
00023 // -->8-->8-->8-->8--
00024 
00025 #include <rl_raylib/rl_Exception.h>
00026 
00027 rl_Exception::~rl_Exception() throw () {}
00028 
00029 rl_Exception::rl_Exception( const string& msg )
00030   : Exception( msg ) {}
00031 
00032 rl_Exception::rl_Exception( const char* format, ... ) 
00033   : Exception() 
00034 {
00035   va_list args;
00036   va_start( args, format );
00037   char str[ 8192 ];
00038   vsprintf( str, format, args );
00039   string msg = str;
00040   set_message( msg );
00041   va_end( args );
00042 
00043 }
00044 

Generated on Mon Nov 3 18:15:05 2008 for rl_raylib by  doxygen 1.5.6