#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
# MatrixEngine is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#          http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
class UbsError(Exception):
    """UBS引擎基础异常"""
    pass


class UbsEngineError(UbsError):
    """引擎运行时异常"""
    pass


class UbsMemError(UbsError):
    """内存操作异常"""
    pass


class UbsTopologyError(UbsError):
    """拓扑查询异常"""
    pass


class UbsNodeError(UbsError):
    """节点查询异常"""
    pass


class UbsConnectionFailedError(UbsError):
    """连接异常"""
    pass


class UbsAuthFailedError(UbsError):
    """鉴权异常"""
    pass


class UbsConfigError(UbsError):
    """配置异常"""
    pass


class UbsNativeLibraryError(UbsError):
    """本地库加载异常"""
    pass


class UbsErrNullPointer(UbsError):
    pass


class UbsEngineConnectionError(UbsError):
    """连接UBSE服务端失败"""
    pass


class UbsEngineAuthError(UbsError):
    """UBSE服务端鉴权不通过"""
    pass


class UbsEngineTimeoutError(UbsError):
    """UBSE服务端处理超时"""
    pass


class UbsEngineInternalError(UbsError):
    """UBSE服务端内部错误"""
    pass


class UbsEngineOutOfRangeError(UbsError):
    """name参数超出范围"""
    pass


class UbsEngineNotExistError(UbsError):
    """借用关系不存在"""
    pass