PineForge HPO 1.11.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
pineforge_hpo.error.HpoError Class Reference
+ Inheritance diagram for pineforge_hpo.error.HpoError:

Public Member Functions

dict[str, Any]|None failure_args (self)
 
 with_failure (self, str|None code, dict[str, Any]|None args, str origin="hpo")
 

Public Attributes

 code
 
 origin
 

Static Public Attributes

str code = "hpo_unclassified_error"
 
str origin = "hpo"
 

Protected Attributes

 _failure_args
 

Detailed Description

Exception base preserving legacy types and exposing typed failure args.

``str(error)`` and ``error.args`` retain the legacy message contract.
``error.failure_args`` is the scalar JSON object used by the failure protocol.

Definition at line 8 of file error.py.

Member Function Documentation

◆ failure_args()

dict[str, Any] | None pineforge_hpo.error.HpoError.failure_args (   self)

Definition at line 19 of file error.py.

◆ with_failure()

pineforge_hpo.error.HpoError.with_failure (   self,
str | None  code,
dict[str, Any] | None  args,
str   origin = "hpo" 
)

Member Data Documentation

◆ _failure_args

pineforge_hpo.error.HpoError._failure_args
protected

Definition at line 27 of file error.py.

◆ code [1/2]

◆ code [2/2]

◆ origin [1/2]

str pineforge_hpo.error.HpoError.origin = "hpo"
static

Definition at line 16 of file error.py.

◆ origin [2/2]

pineforge_hpo.error.HpoError.origin

Definition at line 28 of file error.py.


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