Branch data Line data Source code
1 : : /******************************************************************************
2 : : ------------- Copyright (c) 2009-2023 H a r a l d A c h i t z ---------------
3 : : ---------- < h a r a l d dot a c h i t z at g m a i l dot c o m > ------------
4 : : ---- This Source Code Form is subject to the terms of the Mozilla Public -----
5 : : ---- License, v. 2.0. If a copy of the MPL was not distributed with this -----
6 : : ---------- file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------
7 : : ******************************************************************************/
8 : :
9 : : #include <sl3/error.hpp>
10 : :
11 : : #include <map>
12 : : #include <ostream>
13 : :
14 : : namespace sl3
15 : : {
16 : : template class LIBSL3_API ErrType<ErrCode::NoConnection>;
17 : : template class LIBSL3_API ErrType<ErrCode::OutOfRange>;
18 : : template class LIBSL3_API ErrType<ErrCode::TypeMisMatch>;
19 : : template class LIBSL3_API ErrType<ErrCode::NullValueAccess>;
20 : : template class LIBSL3_API ErrType<ErrCode::UNEXPECTED>;
21 : :
22 : : std::ostream&
23 : 3 : operator<< (std::ostream& os, const Error& e)
24 : : {
25 : 3 : os << "sl3::" << ErrCodeName (e.getId ()) << ":" << e.what ();
26 : 3 : return os;
27 : : }
28 : : }
|