PineForge HPO 0.1.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
pineforge::hpo::ExpressionError Class Reference

Parse error raised while compiling a metric expression. More...

#include <pineforge/hpo/objective.hpp>

+ Inheritance diagram for pineforge::hpo::ExpressionError:

Public Member Functions

 ExpressionError (std::string message, std::size_t offset)
 Constructs an error whose what() text includes the byte offset.
 
std::size_t offset () const noexcept
 Returns the zero-based byte offset in the original expression.
 

Detailed Description

Parse error raised while compiling a metric expression.

Definition at line 62 of file objective.hpp.

Constructor & Destructor Documentation

◆ ExpressionError()

pineforge::hpo::ExpressionError::ExpressionError ( std::string  message,
std::size_t  offset 
)

Constructs an error whose what() text includes the byte offset.

Member Function Documentation

◆ offset()

std::size_t pineforge::hpo::ExpressionError::offset ( ) const
inlinenoexcept

Returns the zero-based byte offset in the original expression.

Definition at line 68 of file objective.hpp.


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