Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

error.hpp

Go to the documentation of this file.
00001 
00002 //
00003 // Fichero            : error.hpp
00004 // Autor              : Cesar Ortiz
00005 // Fecha creacion     : 
00006 // 
00007 // Descripcion        : Mecanismos de error
00008 //
00009 // 
00010 // Notas:
00011 //    - Permite el uso del operador <<. Ej:
00012 //
00013 //        JIC_ERROR("Excepcion capturada: << ex);
00014 //
00015 //
00017 
00018 #ifndef _error_h_
00019 #define _error_h_
00020 
00021 #include "jic/log/trazas.hpp"
00022 #include <iostream>
00023 
00024 #ifdef DEBUG
00025 
00026 #define JIC_ERROR(x) \
00027            cerr << "ERROR: " << x << " ( " << __FILE__ << ", " << __LINE__ << " )" << endl; \
00028            SUCESO("ERROR: " << x << " ( " << __FILE__ << ", " << __LINE__ << " )");
00029 
00030 #else
00031 
00032 #define JIC_ERROR(x) \
00033            cerr << "ERROR: " << x << endl; \
00034            SUCESO("ERROR: " << x);
00035            
00036 #endif           
00037 
00038 #endif
00039 

Generated on Wed Mar 5 21:31:47 2003 for JIC by doxygen1.3-rc3