mirror of
https://github.com/langgenius/dify.git
synced 2026-11-24 20:59:04 +08:00
29 lines
1.1 KiB
Python
29 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.")
|