890 """ |
890 """ |
891 self .__clientError() |
891 self .__clientError() |
892 |
892 |
893 if ( |
893 if ( |
894 not self.__windowed and |
894 not self.__windowed and |
895 Preferences.getDebugger("ShowExceptionInShell") |
895 Preferences.getDebugger("ShowExceptionInShell") and |
|
896 exceptionType |
896 ): |
897 ): |
897 if exceptionType: |
898 if stackTrace: |
898 if stackTrace: |
899 self.__write( |
899 self.__write( |
900 self.tr('Exception "{0}"\n{1}\nFile: {2}, Line: {3}\n') |
900 self.tr('Exception "{0}"\n{1}\nFile: {2}, Line: {3}\n') |
901 .format( |
901 .format( |
902 exceptionType, |
902 exceptionType, |
903 exceptionMessage, |
903 exceptionMessage, |
904 stackTrace[0][0], |
904 stackTrace[0][0], |
905 stackTrace[0][1] |
905 stackTrace[0][1] |
|
906 ) |
|
907 ) |
906 ) |
908 else: |
907 ) |
909 self.__write( |
908 else: |
910 self.tr('Exception "{0}"\n{1}\n') |
909 self.__write( |
911 .format( |
910 self.tr('Exception "{0}"\n{1}\n') |
912 exceptionType, |
911 .format( |
913 exceptionMessage) |
912 exceptionType, |
914 ) |
913 exceptionMessage) |
|
914 ) |
915 |
915 |
916 def __clientSyntaxError(self, message, filename, lineNo, characterNo): |
916 def __clientSyntaxError(self, message, filename, lineNo, characterNo): |
917 """ |
917 """ |
918 Private method to handle a syntax error in the debugged program. |
918 Private method to handle a syntax error in the debugged program. |
919 |
919 |