+ more exeptions

This commit is contained in:
oleting
2020-12-26 15:51:26 +01:00
parent 683a0c7a70
commit 38f7f9642b

View File

@@ -1,5 +1,5 @@
from gui.utils import nassi, output from gui.utils import nassi, output
from interpreter.interpret_source import JavaSyntaxError from interpreter.interpret_source import JavaSyntaxError, ScopeNotFoundExeption
import PySimpleGUI as sg import PySimpleGUI as sg
import os.path import os.path
import random import random
@@ -133,9 +133,12 @@ class gui:
sg.popup_notify('Succsessful created!', sg.popup_notify('Succsessful created!',
title='Created') title='Created')
except JavaSyntaxError: except JavaSyntaxError as JsE:
logging.error(('||SyntaxError in Java File||Failed to create Image with values = ' + str(values))) logging.error(('||SyntaxError in Java File||Failed to create Image with values = ' + str(values)))
sg.popup_error(('Failed to create an image: SyntaxError in your Javacode')) sg.popup_error((str(JsE)))
except ScopeNotFoundExeption as SnFe:
logging.error(('||ScopeNotFoundExeption||Failed to create Image with values = ' + str(values)))
sg.popup_error((str(SnFe)))
except: except:
logging.error( logging.error(
('Failed to create Image with values = ' + str(values))) ('Failed to create Image with values = ' + str(values)))