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