Files
NexQuant/rdagent/core/exception.py
T
Linlang 276b462f40 Fix ruff error1 (#81)
* fix_ruff_error1

* fix_ruff_error

* fix ruff error

* fix ruff error

* pass model.py

* rename exception class

* rename exception class

* rename func name generate_feedback

* remove prepare args

* optimize code

* optimize code

* fix code error
2024-07-18 22:36:04 +08:00

45 lines
909 B
Python

class CoderError(Exception):
"""
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.
"""
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 CustomRunnerError(Exception):
"""
Exceptions raised when running the code output.
"""
class FactorEmptyError(Exception):
"""
Exceptions raised when no factor is generated correctly
"""
class ModelEmptyError(Exception):
"""
Exceptions raised when no model is generated correctly
"""