human
Give me a the Python program you requested given the following:
Complete the below
def Error(msg):

    ''''Helper class to raise parser errors.'
    '''
assistant
#Here is the Python program you requested.
    def raise_error(s, loc, toks):
        raise ParseFatalException(s, loc, msg)
    empty = Empty()
    empty.setParseAction(raise_error)
    return empty