1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4# Copyright (c) 2020-2021 Huawei Device Co., Ltd.
5#
6# HDF is dual licensed: you can use it either under the terms of
7# the GPL, or the BSD license, at your option.
8# See the LICENSE file in the root of this repository for complete details.
9
10
11from command_line.hdf_command_error_code import CommandErrorCode
12
13
14class HdfToolException(Exception):
15    def __init__(self, msg, error_code=CommandErrorCode.UNKNOWN_ERROR):
16        super(HdfToolException, self).__init__(msg)
17        self.error_code = error_code
18        self.exc_msg = msg
19