mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
30 lines
566 B
C++
30 lines
566 B
C++
#include "stdafx.h"
|
|
#include "exceptions.h"
|
|
|
|
|
|
namespace EXCEPT
|
|
{;
|
|
|
|
|
|
LogicalException::LogicalException(const std::string& message)
|
|
: logic_error(message)
|
|
{
|
|
Log::error("Logical exception!!! " + message);
|
|
}
|
|
|
|
|
|
RuntimeException::RuntimeException(const std::string& message)
|
|
: runtime_error(message)
|
|
{
|
|
Log::error("Run-time exception!!! " + message);
|
|
}
|
|
|
|
|
|
StopConversionException::StopConversionException(const std::string& message)
|
|
: runtime_error(message)
|
|
{
|
|
Log::error("Stop-conversion exception!!! " + message);
|
|
}
|
|
|
|
|
|
} // namespace EXCEPT
|