2024-07-17 15:00:13 +08:00
|
|
|
class CoderException(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-17 15:00:13 +08:00
|
|
|
class CodeFormatException(CoderException):
|
2024-05-21 22:48:41 +08:00
|
|
|
"""
|
|
|
|
|
The generated code is not found due format error.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
2024-07-17 15:00:13 +08:00
|
|
|
class RuntimeErrorException(CoderException):
|
2024-05-21 22:48:41 +08:00
|
|
|
"""
|
|
|
|
|
The generated code fail to execute the script.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
2024-07-17 15:00:13 +08:00
|
|
|
class NoOutputException(CoderException):
|
2024-05-21 22:48:41 +08:00
|
|
|
"""
|
|
|
|
|
The code fail to generate output file.
|
|
|
|
|
"""
|
2024-07-17 15:00:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class RunnerException(Exception):
|
|
|
|
|
"""
|
|
|
|
|
Exceptions raised when running the code output.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FactorEmptyException(Exception):
|
|
|
|
|
"""
|
|
|
|
|
Exceptions raised when no factor is generated correctly
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ModelEmptyException(Exception):
|
|
|
|
|
"""
|
|
|
|
|
Exceptions raised when no model is generated correctly
|
|
|
|
|
"""
|