+ more exeptions
This commit is contained in:
@@ -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)))
|
||||||
|
|||||||
Reference in New Issue
Block a user