-
Notifications
You must be signed in to change notification settings - Fork 14
How does Levure report unexpected errors?
Trevor DeVore edited this page Jun 15, 2017
·
3 revisions
Levure will report errors in two different ways:
- If Levure encounters an error while loading your application files then an error dialog will appear. The error dialog will include the path to the stack that failed to load as well as the raw error log that the LiveCode engine reported. You should only see this error message during development when you have code that has an error (e.g. a library script that generates an error in the
libraryStackhandler). - After the application has loaded then Levure will throw errors if you pass an invalid parameter to a handler. Errors will be prefixed with
levureerr,.levureAppGet()/levureAppSetwill throw errors if you try to access or set a property that has not been defined in theapp.ymlfile.levureApplicationDataFolder()will also throw an error if theapplication data folderhas not been set in theapp.ymlfile. - The preferences helper will throw an error if you try to use it and have not set the
preferences filenamein theapp.ymlfile. The error will be prefixed withprefserr,.
Levure does not handle the errorDialog message. It is up to the developer to incorporate an errorDialog handler in their application if they would like to display errors to the end user.
Levure is an application development framework written for LiveCode.