2013-07-16 01:43:32 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#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();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|