PLCnext API Documentation 23.6.0.37
ThreadInterruptException.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Commons/Exceptions/CommonException.hpp"
9
10namespace Arp { namespace System { namespace Commons
11{
12
14{
15public: // typedefs
16
17public: // construction/destruction
26
27protected: // overridden operations
28 Exception::Ptr Clone(void)const override;
29
30};
31
33// inline methods of class InterruptedException
35 : CommonException(ExceptionTypeId::ThreadInterrupt, "Thread was interrupted")
36{
37}
38
39}}} // end of namespace Arp::System::Commons
std::shared_ptr< Exception > Ptr
The smart pointer tpye of this class.
Definition: Exception.hpp:19
This is the base class of common exception classes.
Definition: CommonException.hpp:19
Definition: ThreadInterruptException.hpp:14
~ThreadInterruptException(void)=default
Destructs this instance and frees all resources.
ThreadInterruptException & operator=(const ThreadInterruptException &arg)=default
Assignment operator.
ThreadInterruptException(void)
Constructs an InterruptedException instance.
Definition: ThreadInterruptException.hpp:34
Exception::Ptr Clone(void) const override
Clones this instance.
ThreadInterruptException(const ThreadInterruptException &arg)=default
Copy constructor.
@ System
System components used by the System, Device, Plc or Io domains.
ExceptionTypeId
Specifies the type id of any exception derived by <see cref="CommonException".
Definition: ExceptionTypeId.hpp:15
Root namespace for the PLCnext API