8#include "Arp/System/Core/Exception.hpp"
9#include "Arp/System/Commons/Logging.h"
11namespace Arp {
namespace System {
namespace Commons {
namespace Testing
44 log.Error(
"Exception in unit test occurs: {}", e);
This is the base class of all Arp exception classes.
Definition: Exception.hpp:16
String ToString(void) const
Gets a reasonable string representation of this exception.
Definition: Loggable.hxx:20
Static exception handler class for easy use in unit tests.
Definition: ExceptionHandler.hxx:16
~ExceptionHandler(void)=delete
Destructs this instance and frees all resources.
static void ConvertToStd(F func)
Converts Arp exception to std exceptions, which might be handled by boost test framework.
Definition: ExceptionHandler.hxx:36
ExceptionHandler(void)=delete
Constructs an ExceptionHandler instance.
ExceptionHandler(const ExceptionHandler &arg)=delete
Copy constructor.
ExceptionHandler & operator=(const ExceptionHandler &arg)=delete
Assignment operator.
const BaseString & GetBaseString() const
Gets the basic std string.
Definition: BasicString.hxx:1511
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API