How to use the cup.err.BaseCupException.__init__ function in cup

To help you get started, we’ve selected a few cup examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github baidu / CUP / cup / err.py View on Github external
def __init__(self, msg=''):
        msg = 'LockFileError: %s' % msg
        BaseCupException.__init__(self, msg)
github baidu / CUP / cup / err.py View on Github external
def __init__(self, msg=''):
        msg = 'The functionality is not implemented yet, {0}'.format(msg)
        BaseCupException.__init__(self, msg)
github baidu / CUP / cup / err.py View on Github external
def __init__(self, expect, got):
        msg = 'expect failure, expect {0}, got {1}'.format(expect, got)
        BaseCupException.__init__(self, msg)
github baidu / CUP / cup / err.py View on Github external
def __init__(self, msg=''):
        BaseCupException.__init__(self, msg)
github baidu / CUP / cup / const.py View on Github external
def __init__(self, msg=''):
            msg = 'Cup const error: %s.' % msg
            cup.err.BaseCupException.__init__(self, msg)
github baidu / CUP / cup / err.py View on Github external
def __init__(self, msg):
        BaseCupException.__init__(self, msg)
github baidu / CUP / cup / err.py View on Github external
def __init__(self, msg=''):
        msg = 'Configuration Error: {0}'.format(msg)
        BaseCupException.__init__(self, msg)
github baidu / CUP / cup / err.py View on Github external
def __init__(self, msg=''):
        BaseCupException.__init__(self, msg)
github baidu / CUP / cup / err.py View on Github external
def __init__(self, msg=''):
        BaseCupException.__init__(self, msg)