Files
NexQuant/rdagent/core/exception.py
T

45 lines
909 B
Python
Raw Normal View History

2024-07-18 22:36:04 +08:00
class CoderError(Exception):
2024-05-21 22:48:41 +08:00
"""
Exceptions raised when Implementing and running code.
2024-07-05 17:42:00 +08:00
- start: FactorTask => FactorGenerator
2024-05-21 22:48:41 +08:00
- end: Get dataframe after execution
The more detailed evaluation in dataframe values are managed by the evaluator.
"""
2024-07-18 22:36:04 +08:00
class CodeFormatError(CoderError):
2024-05-21 22:48:41 +08:00
"""
The generated code is not found due format error.
"""
2024-07-18 22:36:04 +08:00
class CustomRuntimeError(CoderError):
2024-05-21 22:48:41 +08:00
"""
The generated code fail to execute the script.
"""
2024-07-18 22:36:04 +08:00
class NoOutputError(CoderError):
2024-05-21 22:48:41 +08:00
"""
The code fail to generate output file.
"""
2024-07-17 15:00:13 +08:00
2024-07-18 22:36:04 +08:00
class CustomRunnerError(Exception):
2024-07-17 15:00:13 +08:00
"""
Exceptions raised when running the code output.
"""
2024-07-18 22:36:04 +08:00
class FactorEmptyError(Exception):
2024-07-17 15:00:13 +08:00
"""
Exceptions raised when no factor is generated correctly
"""
2024-07-18 22:36:04 +08:00
class ModelEmptyError(Exception):
2024-07-17 15:00:13 +08:00
"""
Exceptions raised when no model is generated correctly
"""