Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 1 / lab_1 / GraphException
.cpp// Copyright (C) 1991 - 1999 Rational Software Corporation
//////////////////////////////////////////////////////////////////////////
#include "GraphException.h"
//////////////////////////////////////////////////////////////////////////
const string& GraphException::get__description() const
{
return _description;
}
GraphException::GraphException(string message)
{
_description = message;
}
string GraphException::getException()
{
return "["+getName()+"]\n\t"+_description;
}
void GraphException::printException()
{
cout<<getException().c_str()<<endl;
}
const string GraphException::getName() const
{
return "GraphException";
}
//////////////////////////////////////////////////////////////////////////