def __str__(self):
        """
        Returns the exception representation.

        :return: Exception representation.
        :rtype: unicode
        """

        if self.__line:
            return "Line '{0}': '{1}'.".format(self.__line, str(self.value))
        else:
            return str(self.value)
def __str__ ( self ) : if self . __line : return "Line '{0}': '{1}'." . format ( self . __line , str ( self . value ) ) else : return str ( self . value )
Returns the exception representation.

        :return: Exception representation.
        :rtype: unicode