aboutsummaryrefslogtreecommitdiffstats
path: root/pyprofibus/phy_fpga_driver/exceptions.py
blob: 21773ef4b1aee9d27c6713975325709e59bc9f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- coding: utf-8 -*-
#
# Driver for FPGA based PROFIBUS PHY.
#
# Copyright (c) 2019 Michael Buesch <m@bues.ch>
#
# Licensed under the terms of the GNU General Public License version 2,
# or (at your option) any later version.
#

from __future__ import division, absolute_import, print_function, unicode_literals
from pyprofibus.compat import *

from pyprofibus.phy import PhyError


__all__ = [
	"FpgaPhyError",
]


class FpgaPhyError(PhyError):
	def __init__(self, msg, *args, **kwargs):
		msg = "PHY-FPGA: " + str(msg)
		super(FpgaPhyError, self).__init__(msg, *args, **kwargs)
bues.ch cgit interface