1 /*
2  *  Created by Phil on 5/8/2012.
3  *  Copyright 2012 Two Blue Cubes Ltd. All rights reserved.
4  *
5  *  Distributed under the Boost Software License, Version 1.0. (See accompanying
6  *  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7  */
8 #ifndef TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_HPP_INCLUDED
9 #define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_HPP_INCLUDED
10 
11 #include "catch_notimplemented_exception.h"
12 #include <sstream>
13 
14 namespace Catch {
15 
NotImplementedException(SourceLineInfo const & lineInfo)16     NotImplementedException::NotImplementedException( SourceLineInfo const& lineInfo )
17     :   m_lineInfo( lineInfo ) {
18         std::ostringstream oss;
19         oss << lineInfo << ": function ";
20         oss << "not implemented";
21         m_what = oss.str();
22     }
23 
what() const24     const char* NotImplementedException::what() const CATCH_NOEXCEPT {
25         return m_what.c_str();
26     }
27 
28 } // end namespace Catch
29 
30 #endif // TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_HPP_INCLUDED
31