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

Base exception class for all NMEA library errors. More...

#include <nmeaException.h>

Inheritance diagram for nmealib::NmeaException:
Inheritance graph
[legend]
Collaboration diagram for nmealib::NmeaException:
Collaboration graph
[legend]

Public Member Functions

 NmeaException (const std::string &context, const std::string &message, const std::string &details="")
 Constructs an NmeaException with context, message, and optional details.
 

Detailed Description

Base exception class for all NMEA library errors.

Derived from std::runtime_error. All NMEA-specific exceptions inherit from this class, allowing callers to catch either the base type or a more specific subtype.

Definition at line 15 of file nmeaException.h.

Constructor & Destructor Documentation

◆ NmeaException()

nmealib::NmeaException::NmeaException ( const std::string &  context,
const std::string &  message,
const std::string &  details = "" 
)
explicit

Constructs an NmeaException with context, message, and optional details.

Parameters
contextA string identifying where the error occurred (e.g., function name).
messageA human-readable description of the error.
detailsOptional extra information appended in parentheses.

Definition at line 5 of file nmeaException.cpp.


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