|
PLCnext API Documentation
20.0.0.24462
|
This is the base class of all Arp exception classes. More...
#include <Exception.hpp>

Public Types | |
| typedef std::shared_ptr< Exception > | Ptr |
| The smart pointer tpye of this class. More... | |
Public Member Functions | |
| template<typename... Args> | |
| Exception (const char *message, const Args &... args) | |
| Constructs an instance of class Exception. More... | |
| Exception (const String &message) | |
| Constructs an instance of class Exception. More... | |
| Exception (String &&message) | |
| Constructs an instance of class Exception. More... | |
| Exception (const String &message, const Exception &innerException) | |
| Constructs an instance of class Exception. More... | |
| Exception (String &&message, Exception &&innerException) | |
| Constructs an instance of class Exception. More... | |
| Exception (const Exception &arg)=default | |
| Constructs an instance of class Exception. More... | |
| Exception (Exception &&arg)=default | |
| Constructs an instance of class Exception. More... | |
| virtual | ~Exception (void)=default |
| Destructs this instance virually. More... | |
| uint32 | GetTypeCode (void) const |
| Gets the type code of this exception. More... | |
| const String & | GetMessage (void) const |
| Gets the error message of this exception. More... | |
| bool | HasInnerException (void) const |
| Determines if this exception has an inner exception. More... | |
| Exception::Ptr | GetInnerException (void) const |
| Gets the inner exception of this exception. More... | |
| String | ToString (void) const |
| Gets a reasonable string representation of this exception. More... | |
Protected Member Functions | |
| Exception (String &&message, const Exception::Ptr &innerExceptionPtr) | |
| Constructs an instance of class Exception. More... | |
| virtual Exception::Ptr | Clone (void) const |
| Clones this instance. More... | |
| virtual String | Format (int indentLevel, bool withInnerException) const |
| Formats this exception using the given indent level. More... | |
| virtual uint32 | GetTypeCodeInternal (void) const |
| Get the type code of this exception. Must be overridden by derived classes. More... | |
Static Protected Attributes | |
| static const int | indentSize = 3 |
| The indentation size (count of blanks) | |
| static const int | indentChar = ' ' |
| The indentation character (blank) | |
| static const int | innerIndentChar = '-' |
| The indentation character to indent inner exceptions. | |
This is the base class of all Arp exception classes.
| typedef std::shared_ptr<Exception> Arp::Exception::Ptr |
The smart pointer tpye of this class.
|
inline |
Constructs an instance of class Exception.
| message | The error message of this exception. |
| args | The arguments of the message, which are formatted into the message parameter. |
|
inline |
Constructs an instance of class Exception.
| message | The error message of this exception. |
|
inline |
Constructs an instance of class Exception.
| message | The error message of this exception. |
Constructs an instance of class Exception.
| message | The error message of this exception. |
| innerException | The inner exception of this exception. |
Constructs an instance of class Exception.
| message | The error message of this exception. |
| innerException | The inner exception of this exception. |
|
default |
Constructs an instance of class Exception.
| arg | The argument to copy. |
|
default |
Constructs an instance of class Exception.
| arg | The argument to move. |
|
virtualdefault |
Destructs this instance virually.
|
inlineprotected |
Constructs an instance of class Exception.
| message | The error message of this exception. |
| innerExceptionPtr | The inner exception of this exception. |
|
protectedvirtual |
Clones this instance.
Reimplemented in Arp::System::Commons::ArgumentException, Arp::System::Commons::Plc::PlcException, Arp::System::Commons::ArgumentOutOfRangeException, Arp::System::Commons::InvalidDataConnectionException, Arp::System::Commons::KeyNotFoundException, Arp::System::Commons::XmlException, Arp::System::Commons::Io::IoException, Arp::System::Commons::ArgumentNullException, Arp::System::Commons::InvalidConfigException, Arp::System::Commons::InvalidFormatException, Arp::System::Commons::LicenseException, Arp::System::Commons::NotImplementedException, Arp::System::Commons::NotSupportedException, Arp::System::Commons::OutOfMemoryException, Arp::System::Commons::TimeoutException, Arp::System::Commons::XmlValidationException, Arp::System::Commons::Io::AccessDeniedException, Arp::System::Commons::Io::AlreadyExistsException, Arp::System::Commons::Io::InvalidPathException, Arp::System::Commons::Io::NotExistException, Arp::System::Commons::Io::OutOfSpaceException, Arp::System::Commons::NotAuthorizedException, Arp::System::Commons::Plc::DivisionByZeroException, Arp::System::Commons::Plc::IndexOutOfRangeException, Arp::System::Commons::Plc::StackOverflowException, Arp::System::Commons::Plc::StringException, Arp::System::Commons::IndexOutOfRangeException, Arp::System::Commons::InvalidCastException, Arp::System::Commons::InvalidOperationException, Arp::System::Commons::ObjectDisposedException, Arp::System::Commons::ParseException, Arp::System::Commons::ThreadInterruptException, and Arp::System::Commons::Io::EndOfStreamException.
|
protectedvirtual |
Formats this exception using the given indent level.
| indentLevel | The indentation level used for formatting. |
| withInnerException | If true the inner exception (if any) sould be formatted into the resulting string as well. |
Reimplemented in Arp::System::Commons::CommonException.
|
inline |
Gets the inner exception of this exception.
|
inline |
Gets the error message of this exception.
|
inline |
Gets the type code of this exception.
Returns 0 for class Exception and any value of enum ExceptionTypeId for any derived class.
|
protectedvirtual |
Get the type code of this exception. Must be overridden by derived classes.
Implements the templated method pattern to retrieve the correct type code from derived exceptions.
Reimplemented in Arp::System::Commons::CommonException.
|
inline |
Determines if this exception has an inner exception.
true if this exception has an inner exception, otherwise false.| String Arp::Exception::ToString | ( | void | ) | const |
Gets a reasonable string representation of this exception.
The resulting string contains a reasonable error message and the entire stacktrace of any derived exception from Arp::System::Commons.
1.8.13