diff --git a/Core/Code/Common/mitkException.cpp b/Core/Code/Common/mitkException.cpp index 9398f876d5..bf1b95793f 100644 --- a/Core/Code/Common/mitkException.cpp +++ b/Core/Code/Common/mitkException.cpp @@ -1,50 +1,50 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include "mitkException.h" void mitk::Exception::AddRethrowData(const char *file, unsigned int lineNumber, const char *message) { mitk::Exception::ReThrowData data = {file, lineNumber, message}; this->m_RethrowData.push_back(data); } int mitk::Exception::GetNumberOfRethrows() { return (int)m_RethrowData.size(); } void mitk::Exception::GetRethrowData(int rethrowNumber, std::string &file, int &line, std::string &message) { if ((rethrowNumber >= (int)m_RethrowData.size()) || (rethrowNumber<0)) { file = ""; line = 0; message = ""; return; } file = m_RethrowData.at(rethrowNumber).RethrowClassname; line = m_RethrowData.at(rethrowNumber).RethrowLine; message = m_RethrowData.at(rethrowNumber).RethrowMessage; } -std::ostream& operator<<(std::ostream& os, const mitk::Exception& e) +std::ostream& mitk::operator<<(std::ostream& os, const mitk::Exception& e) { os << e.GetDescription(); return os; }