text: # -*- coding: utf-8 -*-
  
  # Copyright 2017, IBM.
  #
  # This source code is licensed under the Apache License, Version 2.0 found in
  # the LICENSE.txt file in the root directory of this source tree.
  
  """Exception for errors raised while interpreting nodes."""
  
  
  class NodeException(Exception):
      """Base class for errors raised while interpreting nodes."""
  
      def __init__(self, *msg):
          """Set the error message."""
          super().__init__(*msg)
          self.msg = ' '.join(msg)
  
      def __str__(self):
          """Return the message."""
          return repr(self.msg)
  