nmealib 0.0.4
NMEA 0183/NMEA 2000 parsing library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nmealib::nmea0183::NotMTWException Class Reference

Exception thrown when a sentence is not a valid MTW sentence. More...

#include <mtw.h>

Inheritance diagram for nmealib::nmea0183::NotMTWException:
Inheritance graph
[legend]
Collaboration diagram for nmealib::nmea0183::NotMTWException:
Collaboration graph
[legend]

Public Member Functions

 NotMTWException (const std::string &context, const std::string &details="")
 Construct a NotMTWException with context and optional details.
 
- Public Member Functions inherited from nmealib::NmeaException
 NmeaException (const std::string &context, const std::string &message, const std::string &details="")
 Constructs an NmeaException with context, message, and optional details.
 

Detailed Description

Exception thrown when a sentence is not a valid MTW sentence.

This exception is raised during parsing when the sentence type is not "MTW" or the payload does not conform to the expected MTW format.

Definition at line 14 of file mtw.h.

Constructor & Destructor Documentation

◆ NotMTWException()

nmealib::nmea0183::NotMTWException::NotMTWException ( const std::string &  context,
const std::string &  details = "" 
)
inlineexplicit

Construct a NotMTWException with context and optional details.

Parameters
contextA short string identifying where the exception was thrown (e.g., the name of the function or class).
detailsOptional additional information about the failure.

Definition at line 23 of file mtw.h.


The documentation for this class was generated from the following file: