mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
c109fa8e99
* fix qlib and other scenario bugs * bug fix
60 lines
1.3 KiB
Python
60 lines
1.3 KiB
Python
class WorkflowError(Exception):
|
|
"""
|
|
Exception indicating an error that the current loop cannot handle, preventing further progress.
|
|
"""
|
|
|
|
|
|
class FormatError(WorkflowError):
|
|
"""
|
|
After multiple attempts, we are unable to obtain the answer in the correct format to proceed.
|
|
"""
|
|
|
|
|
|
class CoderError(WorkflowError):
|
|
"""
|
|
Exceptions raised when Implementing and running code.
|
|
- start: FactorTask => FactorGenerator
|
|
- end: Get dataframe after execution
|
|
|
|
The more detailed evaluation in dataframe values are managed by the evaluator.
|
|
"""
|
|
|
|
# NOTE: it corresponds to the error of **component**
|
|
|
|
|
|
class CodeFormatError(CoderError):
|
|
"""
|
|
The generated code is not found due format error.
|
|
"""
|
|
|
|
|
|
class CustomRuntimeError(CoderError):
|
|
"""
|
|
The generated code fail to execute the script.
|
|
"""
|
|
|
|
|
|
class NoOutputError(CoderError):
|
|
"""
|
|
The code fail to generate output file.
|
|
"""
|
|
|
|
|
|
class RunnerError(Exception):
|
|
"""
|
|
Exceptions raised when running the code output.
|
|
"""
|
|
|
|
# NOTE: it corresponds to the error of whole **project**
|
|
|
|
|
|
FactorEmptyError = CoderError # Exceptions raised when no factor is generated correctly
|
|
|
|
ModelEmptyError = CoderError # Exceptions raised when no model is generated correctly
|
|
|
|
|
|
class KaggleError(Exception):
|
|
"""
|
|
Exceptions raised when calling Kaggle API
|
|
"""
|