Struct SDbcParserException#
Defined in File dbcparser.h
Inheritance Relationships#
Base Type#
public std::exception
Struct Documentation#
-
struct SDbcParserException : public std::exception#
Parser exception class.
Public Functions
-
inline SDbcParserException(const CDbcSource &rSource, const std::string &rssReason)#
Constructor supplying a reason for this exception.
- Parameters:
rSource – [in] Reference to the source causing the exception.
rssReason – [in] Reference to the string containing the reason string.
-
inline SDbcParserException(const std::string &rssReason)#
Constructor supplying a reason for this exception.
- Parameters:
rssReason – [in] Reference to the string containing the reason string.
-
template<typename ...TParams>
inline SDbcParserException(const CDbcSource &rSource, const std::string &rssReason, TParams... rgtParams)# Constructor supplying a reason containing parameters for this exception.
The constructor can be supplied a reason as well as zero or more parameters. The reason string can contain placeholders that will be replaced by the parameter. The placeholder is identified with the percent ‘’ character following a parameter index (starting at 1). If another character follows the percent character, this character will be added to the message (e.g. the struing “%%” will result in a message containing “%”). If an index is supplied which is out of range, the messages will include the “<unknown>” at the location the parameter is supposed to be.
- Template Parameters:
TParams – Parameter types.
- Parameters:
rSource – [in] Reference to the source causing the exception.
rssReason – [in] Reference to the string containing the reason string.
rgtParams – [in] Parameter pack containing the parameters.
-
template<typename ...TParams>
inline SDbcParserException(const std::string &rssReason, TParams... rgtParams)# Constructor supplying a reason containing parameters for this exception.
The constructor can be supplied a reason as well as zero or more parameters. The reason string can contain placeholders that will be replaced by the parameter. The placeholder is identified with the percent ‘’ character following a parameter index (starting at 1). If another character follows the percent character, this character will be added to the message (e.g. the struing “%%” will result in a message containing “%”). If an index is supplied which is out of range, the messages will include the “<unknown>” at the location the parameter is supposed to be.
- Template Parameters:
TParams – Parameter types.
- Parameters:
rssReason – [in] Reference to the string containing the reason string.
rgtParams – [in] Parameter pack containing the parameters.
-
inline virtual const char *what() const noexcept override#
Return the reason text of this exception.
- Returns:
The reason text.
-
inline const CDbcSource &Source() const#
Get the source attached to the exception.
- Returns:
Reference to the source.
-
inline void Source(const CDbcSource &rSource)#
Set the source attached to the exception.
- Parameters:
rSource – [in] Reference to the source to assign.
-
inline SDbcParserException(const CDbcSource &rSource, const std::string &rssReason)#