8#include "Arp/System/Commons/Exceptions/ArgumentException.hpp"
10namespace Arp {
namespace System {
namespace Commons
17 template<
typename... Args>
40 static const char*
const defaultMessage;
47template<
typename... Args>
72template<>
struct fmt::formatter<
Arp::System::Commons::KeyNotFoundException> :
public fmt::ostream_formatter {};
This exception is thrown when an invalid argument occurs.
Definition: ArgumentException.hpp:17
This class is used to count sequenced operation calls, which are e.g. invoked during an exception thr...
Definition: StackCounter.hpp:20
This is the base class of all Arp exception classes.
Definition: Exception.hpp:21
std::unique_ptr< Exception > Ptr
The smart pointer type of this class.
Definition: Exception.hpp:27
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
static String Format(const String &format, const Args &... args)
Formats the format string using the .NET/Python syntax with the given variadic arguments.
Definition: String.inl:18
This exception is thrown when a key of value does not exists inside a map.
Definition: KeyNotFoundException.hpp:15
static KeyNotFoundException Create(const T &keyValue)
Creates an KeyNotFoundException instance using a default message text.
Definition: KeyNotFoundException.hpp:56
KeyNotFoundException(const char *message, const Args &... args)
Constructs an KeyNotFoundException instance.
Definition: KeyNotFoundException.hpp:48
Exception::Ptr Clone(void) const override
This operation clones this instance polymorpically as a deep copy.
Definition: KeyNotFoundException.cpp:15
ExceptionTypeId
Specifies the type id of any exception derived by <see cref="CommonException".
Definition: ExceptionTypeId.hpp:15
Root namespace for the PLCnext API