JSBSim Flight Dynamics Model 1.3.0 (09 Apr 2026)
An Open Source Flight Dynamics and Control Software Library in C++
Loading...
Searching...
No Matches
XMLLogException Class Reference

Detailed Description

Definition at line 226 of file FGLog.h.

+ Inheritance diagram for XMLLogException:
+ Collaboration diagram for XMLLogException:

Public Member Functions

 XMLLogException (Element *el)
 
 XMLLogException (LogException &exception, Element *el)
 This constructor can promote a LogException to an XMLLogException by adding the file location information to the exception.
 
- Public Member Functions inherited from LogException
 LogException (LogException &other)
 
const char * what () const noexcept override
 
- Public Member Functions inherited from FGLogging
 FGLogging (LogLevel level)
 
void Flush (void)
 
FGLoggingoperator<< (const char *message)
 
FGLoggingoperator<< (const FGColumnVector3 &vec)
 
FGLoggingoperator<< (const SGPath &path)
 
FGLoggingoperator<< (const std::string &message)
 
FGLoggingoperator<< (int value)
 
FGLoggingoperator<< (LogFormat format)
 
FGLoggingoperator<< (setprecision_t value)
 
FGLoggingoperator<< (setw_t value)
 
FGLoggingoperator<< (std::ios_base &(*manipulator)(std::ios_base &))
 
FGLoggingoperator<< (std::ostream &(*manipulator)(std::ostream &))
 
template<typename T , typename = std::enable_if_t<std::is_arithmetic<T>::value>>
FGLoggingoperator<< (T value)
 
std::streambuf * rdbuf ()
 

Additional Inherited Members

- Protected Member Functions inherited from FGLogging
 FGLogging (FGLogger_ptr l)
 
- Protected Attributes inherited from FGLogging
std::ostringstream buffer
 
FGLogger_ptr logger
 

Constructor & Destructor Documentation

◆ XMLLogException() [1/2]

Definition at line 266 of file FGLog.cpp.

267 : LogException()
268{
269 logger->FileLocation(el->GetFileName(), el->GetLineNumber());
270}

◆ XMLLogException() [2/2]

XMLLogException ( LogException exception,
Element el 
)

This constructor can promote a LogException to an XMLLogException by adding the file location information to the exception.

This is useful to add some context to an exception that was thrown in a context where the file location of the error was not known.

Parameters
exceptionThe LogException to promote.
elThe Element containing the file location of the error.

Definition at line 274 of file FGLog.cpp.

275 : LogException(exception)
276{
277 logger->FileLocation(el->GetFileName(), el->GetLineNumber());
278}
+ Here is the call graph for this function:

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