PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
exceptions.cpp File Reference

Implements PROFINET-specific exception formatting and protocol error descriptions. More...

#include "profinet/exceptions.h"
#include <cstdio>
#include <map>
#include "profinet/util.h"
+ Include dependency graph for exceptions.cpp:

Go to the source code of this file.

Namespaces

namespace  profinet
 

Functions

std::string profinet::GetErrorDecodeName (ErrorDecode errorDecodeName)
 Get the human-readable name for an ErrorDecode value.
 
std::string profinet::GetPnioRwErrorCode1Name (PnioRwErrorCode1 errorCodeRw1)
 Get the human-readable name for a PNIORW ErrorCode1.
 
std::string profinet::GetPnioCmErrorCode1Name (PnioCmErrorCode1 errorCodeCm1)
 Get the human-readable name for a PNIO-CM ErrorCode1.
 
std::string profinet::GetPnioRwErrorMessage (PnioRwInvalidIndexErrorCode2 errorCode2)
 Get the human-readable message for an InvalidIndex error.
 
std::string profinet::GetPnioRwErrorMessage (PnioRwWriteLengthErrorCode2 errorCode2)
 Get the human-readable message for a WriteLength error.
 
std::string profinet::GetPnioRwErrorMessage (PnioRwResourceErrorCode2 errorCode2)
 Get the human-readable message for a Resource error.
 
std::string profinet::GetPnioRwErrorMessage (PnioRwAccessErrorCode2 errorCode2)
 Get the human-readable message for an Access error.
 
std::string profinet::GetPnioRwErrorMessage (PnioRwApplicationErrorCode2 errorCode2)
 Get the human-readable message for an Application error.
 
std::string profinet::GetPnioErrorCode1Name (PnioErrorCode1 errorCode1)
 Get the human-readable name of a PNIO ErrorCode1.
 
std::string profinet::GetPnioErrorMessage (PnioRmpmErrorCode2 errorCode2)
 Get the human-readable message for an RMPM ErrorCode2.
 
std::string profinet::GetPnioErrorMessage (PnioPrmServerErrorCode2 errorCode2)
 Get the human-readable message for a Parameter Server ErrorCode2.
 
std::string profinet::GetPnioRwErrorMessage (PnioRwErrorCode1 errorCode1, std::uint8_t errorCode2)
 Decode a PNIO read/write error.
 
std::string profinet::GetPnioCmErrorMessage (PnioCmArErrorCode2 errorCode2)
 Get the human-readable message for a PNIO-CM AR error.
 
std::string profinet::GetPnioCmErrorMessage (PnioCmIocrErrorCode2 errorCode2)
 Get the human-readable message for a PNIO-CM IOCR error.
 
std::string profinet::GetPnioCmErrorMessage (PnioCmAlarmCrErrorCode2 errorCode2)
 Get the human-readable message for a PNIO-CM Alarm CR error.
 
std::string profinet::GetPnioCmErrorMessage (PnioCmExpectedSubmoduleErrorCode2 errorCode2)
 Get the human-readable message for a PNIO-CM Expected Submodule error.
 
std::string profinet::GetPnioCmErrorMessage (PnioCmDeviceErrorCode2 errorCode2)
 Get the human-readable message for a PNIO-CM Device error.
 
std::string profinet::GetPnioCmErrorMessage (PnioCmFaultyBlockErrorCode2 errorCode2)
 Get the human-readable message for a PNIO-CM Faulty Block error.
 
std::string profinet::DecodePnioCmError (const std::uint8_t &errorCode1, const std::uint8_t &errorCode2)
 
std::string profinet::DecodePnioError (const std::uint8_t &errorCode1, const std::uint8_t &errorCode2)
 
std::string profinet::DecodePnioRWError (const std::uint8_t &errorCode1, const std::uint8_t &errorCode2)
 

Detailed Description

Implements PROFINET-specific exception formatting and protocol error descriptions.

Definition in file exceptions.cpp.