Changeset 2606


Ignore:
Timestamp:
15/02/2010 12:41:59 (2 years ago)
Author:
chris
Message:

Support throwing exception with more complex stringstream-formatted
messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Box.h

    r2603 r2606  
    116116#define THROW_EXCEPTION_MESSAGE(type, subtype, message) \ 
    117117        { \ 
     118                std::ostringstream _box_throw_line; \ 
     119                _box_throw_line << message; \ 
    118120                if(!HideExceptionMessageGuard::ExceptionsHidden()) \ 
    119121                { \ 
     
    123125                                ") at " __FILE__ "(" << __LINE__ << ")") \ 
    124126                } \ 
    125                 throw type(type::subtype, message); \ 
     127                throw type(type::subtype, _box_throw_line.str()); \ 
    126128        } 
    127129 
Note: See TracChangeset for help on using the changeset viewer.