nsol  0.4.1
Nsol - Neuroscience Objects Library
error.h File Reference
#include "Log.h"
#include <stdexcept>
+ Include dependency graph for error.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NSOL_THROW(msg)
 
#define NSOL_CHECK_THROW(cond, errorMsg)
 
#define NSOL_DEBUG_CHECK(cond, errorMsg)
 

Detailed Description

Author
Pablo Toharia pablo.nosp@m..toh.nosp@m.aria@.nosp@m.urjc.nosp@m..es
Date
Remarks
(c) VG-Lab/URJC. All rights reserved. Do not distribute without further notice.

Definition in file error.h.

Macro Definition Documentation

#define NSOL_CHECK_THROW (   cond,
  errorMsg 
)
Value:
{ \
if ( ! (cond) ) NSOL_THROW( errorMsg ); \
}

Definition at line 44 of file error.h.

#define NSOL_THROW (   msg)
Value:
{ \
nsol::Log::log( std::string( msg ), nsol::LOG_LEVEL_ERROR ); \
throw std::runtime_error( msg ); \
}
static void log(const std::string &msg, const TLogLevel level=LOG_LEVEL_VERBOSE)
Method to log out a message in a specific level.

Definition at line 38 of file error.h.