Tidied exceptions
This commit is contained in:
14
src/Exceptions/FatalErrorException.hpp
Normal file
14
src/Exceptions/FatalErrorException.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "Exception.hpp"
|
||||
|
||||
namespace Exceptions
|
||||
{
|
||||
class FatalErrorException: public Exception
|
||||
{
|
||||
public:
|
||||
explicit FatalErrorException(const std::string& message)
|
||||
: Exception(message)
|
||||
{}
|
||||
};
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "Exception.hpp"
|
||||
#include "FatalErrorException.hpp"
|
||||
#include "src/Services/PathService.hpp"
|
||||
|
||||
namespace Exceptions
|
||||
{
|
||||
class InternalFatalErrorException: public Exception
|
||||
class InternalFatalErrorException: public FatalErrorException
|
||||
{
|
||||
public:
|
||||
explicit InternalFatalErrorException(const std::string& message)
|
||||
: Exception(
|
||||
: FatalErrorException(
|
||||
"Internal fatal error - " + message + " - please report this via "
|
||||
+ Services::PathService::homeDomainName() + "/report-issue"
|
||||
)
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "Exception.hpp"
|
||||
#include "FatalErrorException.hpp"
|
||||
|
||||
namespace Exceptions
|
||||
{
|
||||
class InvalidConfig: public Exception
|
||||
class InvalidConfig: public FatalErrorException
|
||||
{
|
||||
public:
|
||||
explicit InvalidConfig(const std::string& message)
|
||||
: Exception(message)
|
||||
: FatalErrorException(message)
|
||||
{}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "Exception.hpp"
|
||||
#include "FatalErrorException.hpp"
|
||||
|
||||
namespace Exceptions
|
||||
{
|
||||
class TargetControllerStartupFailure: public Exception
|
||||
class TargetControllerStartupFailure: public FatalErrorException
|
||||
{
|
||||
public:
|
||||
explicit TargetControllerStartupFailure(const std::string& message)
|
||||
: Exception(message)
|
||||
: FatalErrorException(message)
|
||||
{}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user