xbmc/commons/Exception.cpp
raw| 1 | /* |
| 2 | * Copyright (C) 2005-2018 Team Kodi |
| 3 | * This file is part of Kodi - https://kodi.tv |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 6 | * See LICENSES/README.md for more information. |
| 7 | */ |
| 8 | |
| 9 | #include "Exception.h" |
| 10 | |
| 11 | #include "utils/log.h" |
| 12 | |
| 13 | namespace XbmcCommons |
| 14 | { |
| 15 | Exception::~Exception() = default; |
| 16 | |
| 17 | void Exception::LogThrowMessage(const char* prefix) const |
| 18 | { |
| 19 | CLog::Log(LOGERROR, "EXCEPTION Thrown ({}) : {}", classname, message); |
| 20 | } |
| 21 | } |
| 22 |