def warning(self, amplexception):
        """
        Receives notification of a warning.
        """
        msg = '\t'+str(amplexception).replace('\n', '\n\t')
        print('Warning:\n{:s}'.format(msg))
Receives notification of a warning.