config-tools: add user-defined errors

Create a file which contains user-defined errors for config-tools.

Tracked-On: #5980
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Yang,Yu-chu 2021-04-13 22:03:10 -07:00 committed by wenlingz
parent 4d0880ebec
commit 160431096f

View File

@ -0,0 +1,9 @@
#!/usr/bin/env python3
#
# Copyright (C) 2021 Intel Corporation. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
class ResourceError(Exception):
"""Raise this error when it is out of resource"""