PineForge HPO 1.11.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.
 
- Public Member Functions inherited from pineforge::hpo::TypedHpoError< Base >
 TypedHpoError (std::string code, ErrorArguments args, const std::string &message, FailureOrigin origin=FailureOrigin::Hpo)
 Constructs a coded exception with unchanged English text and optional provenance.
 
const char * what () const noexcept override
 Returns the original standard exception diagnostic.
 
- Public Member Functions inherited from pineforge::hpo::HpoError
 HpoError (std::string code, ErrorArguments args={}, FailureOrigin origin=FailureOrigin::Hpo)
 Constructs metadata; HPO codes and argument vocabularies are defined by the catalog.
 
virtual ~HpoError ()=default
 
const std::string & code () const noexcept
 Returns the stable failure code, never inferred from diagnostic text.
 
const ErrorArguments & args () const noexcept
 Returns typed, catalog-declared scalar arguments.
 
FailureOrigin origin () const noexcept
 Returns the component which owns the code.
 

Detailed Description

Parse error raised while compiling a metric expression.

Definition at line 64 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 70 of file objective.hpp.


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