summaryrefslogtreecommitdiff
path: root/src/Exception.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
commitca4940622c05e50a50f77c621ade914029663446 (patch)
tree2715d87c6b4faa669ae317f6f95d9694630cd4a0 /src/Exception.cc
parentae957baa98d4f97ea2437596db5073f9c33d22ae (diff)
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks like var_ instead of _var.
Diffstat (limited to 'src/Exception.cc')
-rw-r--r--src/Exception.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Exception.cc b/src/Exception.cc
index 81b2219b..f53c54b5 100644
--- a/src/Exception.cc
+++ b/src/Exception.cc
@@ -39,32 +39,32 @@
namespace aria2 {
Exception::Exception(const char* file, int line, const std::string& msg):
- _file(file), _line(line), _msg(msg) {}
+ file_(file), line_(line), msg_(msg) {}
Exception::Exception(const char* file, int line, const std::string& msg,
const Exception& cause):
- _file(file), _line(line), _msg(msg), _cause(cause.copy()) {}
+ file_(file), line_(line), msg_(msg), cause_(cause.copy()) {}
Exception::Exception(const char* file, int line, const Exception& e):
- _file(file), _line(line), _msg(e._msg), _cause(e._cause)
+ file_(file), line_(line), msg_(e.msg_), cause_(e.cause_)
{}
Exception::~Exception() throw() {}
const char* Exception::what() const throw()
{
- return _msg.c_str();
+ return msg_.c_str();
}
std::string Exception::stackTrace() const throw()
{
std::stringstream s;
- s << "Exception: " << "[" << _file << ":" << _line << "] " << what() << "\n";
- SharedHandle<Exception> e = _cause;
+ s << "Exception: " << "[" << file_ << ":" << line_ << "] " << what() << "\n";
+ SharedHandle<Exception> e = cause_;
while(!e.isNull()) {
- s << " -> " << "[" << e->_file << ":" << e->_line << "] "
+ s << " -> " << "[" << e->file_ << ":" << e->line_ << "] "
<< e->what() << "\n";
- e = e->_cause;
+ e = e->cause_;
}
return s.str();
}