{
public:
std::string serviceName;
+ const char *excDescription;
+ protected:
ServiceLoadExc(std::string serviceName) noexcept
: serviceName(serviceName)
{
ServiceNotFound(std::string serviceName) noexcept
: ServiceLoadExc(serviceName)
{
+ excDescription = "Not found.";
}
};
ServiceCyclicDependency(std::string serviceName) noexcept
: ServiceLoadExc(serviceName)
{
+ excDescription = "Cyclic dependency.";
}
};
ServiceDescriptionExc(std::string serviceName, std::string extraInfo) noexcept
: ServiceLoadExc(serviceName), extraInfo(extraInfo)
{
+ excDescription = extraInfo.c_str();
}
};