src/lemon/error.h
changeset 1151 b217fc69f913
parent 1125 377e240b050f
child 1157 3996d2098090
equal deleted inserted replaced
2:eaf5852add30 3:32ca28045568
    15  */
    15  */
    16 
    16 
    17 #ifndef LEMON_ERROR_H
    17 #ifndef LEMON_ERROR_H
    18 #define LEMON_ERROR_H
    18 #define LEMON_ERROR_H
    19 
    19 
    20 //! \ingroup misc
    20 //! \ingroup exceptions
    21 //! \file
    21 //! \file
    22 //! \brief Basic exception classes and error handling.
    22 //! \brief Basic exception classes and error handling.
    23 
    23 
    24 #include <exception>
    24 #include <exception>
    25 #include <string>
    25 #include <string>
    28 #include <cstdlib>
    28 #include <cstdlib>
    29 
    29 
    30 #include <boost/shared_ptr.hpp>
    30 #include <boost/shared_ptr.hpp>
    31 
    31 
    32 namespace lemon {
    32 namespace lemon {
       
    33 
       
    34 /// \addtogroup exceptions
       
    35 /// @{
    33 
    36 
    34   /// Exception-safe convenient "error message" class.
    37   /// Exception-safe convenient "error message" class.
    35 
    38 
    36   /// Helper class which provides a convenient ostream-like (operator <<
    39   /// Helper class which provides a convenient ostream-like (operator <<
    37   /// based) interface to create a string message. Mostly useful in
    40   /// based) interface to create a string message. Mostly useful in
   331 		   bool = true)
   334 		   bool = true)
   332   {
   335   {
   333     throw AssertionFailedError(file, line, func, message, assertion);
   336     throw AssertionFailedError(file, line, func, message, assertion);
   334   }
   337   }
   335 
   338 
       
   339 /// @}
   336 
   340 
   337 }
   341 }
   338 #endif // LEMON_ERROR_H
   342 #endif // LEMON_ERROR_H
   339 
   343 
   340 #undef LEMON_ASSERT
   344 #undef LEMON_ASSERT