WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
frc::RuntimeError Class Reference

Runtime error exception. More...

#include <frc/Errors.h>

Inheritance diagram for frc::RuntimeError:

Public Member Functions

 RuntimeError (int32_t code, std::string &&loc, std::string &&stack, std::string &&message)
 
 RuntimeError (int32_t code, const char *fileName, int lineNumber, const char *funcName, std::string &&stack, std::string &&message)
 
int32_t code () const noexcept
 
const char * loc () const noexcept
 
const char * stack () const noexcept
 
void Report () const
 Reports error to Driver Station (using HAL_SendError).
 

Detailed Description

Runtime error exception.

Constructor & Destructor Documentation

◆ RuntimeError() [1/2]

frc::RuntimeError::RuntimeError ( int32_t code,
std::string && loc,
std::string && stack,
std::string && message )

◆ RuntimeError() [2/2]

frc::RuntimeError::RuntimeError ( int32_t code,
const char * fileName,
int lineNumber,
const char * funcName,
std::string && stack,
std::string && message )

Member Function Documentation

◆ code()

int32_t frc::RuntimeError::code ( ) const
inlinenoexcept

◆ loc()

const char * frc::RuntimeError::loc ( ) const
inlinenoexcept

◆ Report()

void frc::RuntimeError::Report ( ) const

Reports error to Driver Station (using HAL_SendError).

◆ stack()

const char * frc::RuntimeError::stack ( ) const
inlinenoexcept

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