library of assembled shared sources |
http://lass.cocamware.com |
#include <future.h>
Public Member Functions | |
FutureBindError (const std::string &msg, const std::string &loc) | |
virtual const char * | what () const throw () |
return message in STL style | |
const std::string & | message () const |
return string with error message | |
const std::string & | location () const |
return string with location info where exception is thrown | |
void | throwSelf () const |
std::auto_ptr < RemoteExceptionBase > | clone () const |
Related Functions | |
(Note that these are not member functions.) | |
LASS_THROW_EX(t_exception, s_message) |
Definition at line 75 of file future.h.
lass::util::experimental::FutureBindError::FutureBindError | ( | const std::string & | msg, | |
const std::string & | loc | |||
) | [inline] |
virtual const char* lass::util::Exception::what | ( | ) | const throw () [inline, virtual, inherited] |
return message in STL style
Definition at line 144 of file exception.h.
References lass::util::Exception::message_.
const std::string& lass::util::Exception::message | ( | ) | const [inline, inherited] |
return string with error message
Definition at line 151 of file exception.h.
References lass::util::Exception::message_.
Referenced by lass::python::PyExportTraitsPrimAxis< AxisType, ExportTraits >::get(), lass::python::PyExportTraitsPrimAabb< AabbType, ExportTraits >::get(), lass::python::impl::handleLassException(), lass::io::Image::open(), and lass::io::Image::save().
const std::string& lass::util::Exception::location | ( | ) | const [inline, inherited] |
return string with location info where exception is thrown
Definition at line 158 of file exception.h.
References lass::util::Exception::location_.
Referenced by lass::python::impl::handleLassException().
void lass::util::experimental::RemoteExceptionBase::throwSelf | ( | ) | const [inline, inherited] |
Definition at line 78 of file exception.h.
References lass::util::experimental::RemoteExceptionBase::doThrowSelf().
std::auto_ptr<RemoteExceptionBase> lass::util::experimental::RemoteExceptionBase::clone | ( | ) | const [inline, inherited] |
Definition at line 79 of file exception.h.
References lass::io::cerr(), and lass::util::experimental::RemoteExceptionBase::doClone().
Referenced by lass::util::ThreadPool< TaskType, ConsumerType, IdlePolicy, ParticipationPolicy >::ConsumerThread::doRun(), lass::util::experimental::Future< T >::error(), lass::util::impl::ThreadInternal::startThread(), and lass::util::impl::ThreadInternal::staticThreadStart().
LASS_THROW_EX | ( | t_exception, | |||
s_message | ) | [related, inherited] |
To throw an exception like util::Exception that accepts a message and a location string, you can supply those strings yourself, ore you can use this macro for your convenience.
This macro will fill in the location by itself so that you only have to worry about the message. And as an extra, the message is streamed, so you can use the regular operator<<
to concatenate variables in the message.
int foo = -5; if (foo < 0) { LASS_THROW_EX(util::Exception, "foo '" << foo << "' is less than zero"); }
Definition at line 233 of file exception.h.
Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by 1.5.7.1 |