PLCnext API Documentation  22.9.0.33
ThreadInterruptException.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/System/Commons/Exceptions/CommonException.hpp"
9 
10 namespace Arp { namespace System { namespace Commons
11 {
12 
14 {
15 public: // typedefs
16 
17 public: // construction/destruction
25  ~ThreadInterruptException(void) = default;
26 
27 protected: // 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(void)
Constructs an InterruptedException instance.
Definition: ThreadInterruptException.hpp:34
ThreadInterruptException & operator=(const ThreadInterruptException &arg)=default
Assignment operator.
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