27 #ifndef MAQUIS_DMRG__UTILS_TIME_LIMIT_EXCEPTION_H
28 #define MAQUIS_DMRG__UTILS_TIME_LIMIT_EXCEPTION_H
31 #include <boost/lexical_cast.hpp>
37 time_limit() : std::runtime_error(
"time limit reached") {}
40 : std::runtime_error( std::string(
"time limit reached. current status is [ ")
41 + std::string(
"sweep=") + boost::lexical_cast<std::string>(sw) + std::string(
", ")
42 + std::string(
"site=" ) + boost::lexical_cast<std::string>(st) + std::string(
" ]."))
time_limit(int sw, int st)