mirror of
https://github.com/langgenius/dify.git
synced 2026-11-22 02:59:44 +08:00
Co-authored-by: Stephen Zhou <hi@hyoban.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jyong <jyong@dify.ai>
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
from services.errors.base import BaseServiceError
|
|
|
|
|
|
class EvaluationPlanRequiredError(Exception):
|
|
"""A Cloud workspace cannot use Evaluation without a paid subscription."""
|
|
|
|
|
|
class EvaluationEntitlementUnavailableError(Exception):
|
|
"""Evaluation billing could not be checked, so the operation must not proceed."""
|
|
|
|
|
|
class EvaluationFrameworkNotConfiguredError(BaseServiceError):
|
|
def __init__(self, description: str | None = None):
|
|
super().__init__(description or "Selected evaluation framework is unavailable.")
|
|
|
|
|
|
class EvaluationNotFoundError(BaseServiceError):
|
|
def __init__(self, description: str | None = None):
|
|
super().__init__(description or "Evaluation not found.")
|
|
|
|
|
|
class EvaluationDatasetInvalidError(BaseServiceError):
|
|
def __init__(self, description: str | None = None):
|
|
super().__init__(description or "Evaluation dataset is invalid.")
|
|
|
|
|
|
class EvaluationMaxConcurrentRunsError(BaseServiceError):
|
|
def __init__(self, description: str | None = None):
|
|
super().__init__(description or "Maximum number of concurrent evaluation runs reached.")
|