mirror of
https://github.com/Telecominfraproject/openafc_final.git
synced 2026-01-01 20:52:10 +00:00
36 lines
1006 B
Python
36 lines
1006 B
Python
#
|
|
# Copyright © 2021 Broadcom. All rights reserved. The term "Broadcom"
|
|
# refers solely to the Broadcom Inc. corporate affiliate that owns
|
|
# the software below. This work is licensed under the OpenAFC Project License,
|
|
# a copy of which is included with this software program
|
|
#
|
|
|
|
class AfcError(Exception):
|
|
pass
|
|
|
|
|
|
class IncompleteRange(AfcError):
|
|
def __init__(self, left, right, msg='Incomplete range'):
|
|
self.msg = msg
|
|
self.left = left
|
|
self.right = right
|
|
super().__init__(self.msg, self.left, self.right)
|
|
|
|
|
|
class IncompleteFreqRange(IncompleteRange):
|
|
def __init__(self, left, right, msg='Incomplete freq range'):
|
|
IncompleteRange.__init__(self, left, right, msg)
|
|
|
|
|
|
class IncompleteGeoCoordinates(IncompleteRange):
|
|
def __init__(self, left, right, msg='Incomplete Geo coordinates'):
|
|
IncompleteRange.__init__(self, left, right, msg)
|
|
|
|
# Local Variables:
|
|
# mode: Python
|
|
# indent-tabs-mode: nil
|
|
# python-indent: 4
|
|
# End:
|
|
#
|
|
# vim: sw=4:et:tw=80:cc=+1
|