2013-07-16 01:43:32 +00:00
|
|
|
/*
|
2013-07-19 17:29:33 +00:00
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
2013-07-16 01:43:32 +00:00
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
2013-07-19 17:29:33 +00:00
|
|
|
Author: Leonardo de Moura
|
2013-07-16 01:43:32 +00:00
|
|
|
*/
|
|
|
|
#include "exception.h"
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
|
|
|
|
exception::exception(char const * msg):m_msg(msg) {
|
|
|
|
}
|
|
|
|
|
|
|
|
exception::exception(std::string const & msg):m_msg(msg) {
|
|
|
|
}
|
|
|
|
|
|
|
|
exception::exception(exception const & e):m_msg(e.m_msg) {
|
|
|
|
}
|
|
|
|
|
2013-07-17 00:38:51 +00:00
|
|
|
exception::~exception() noexcept {
|
2013-07-16 01:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
char const * exception::what() const noexcept {
|
|
|
|
return m_msg.c_str();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|