-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from pec1985/timob-14365
[TIMOB-14365] don't crash the app if JS error
- Loading branch information
Showing
10 changed files
with
317 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2009-2014 by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
|
||
#ifndef TI_ERROR_SCREEN_H_ | ||
#define TI_ERROR_SCREEN_H_ | ||
|
||
#include <v8.h> | ||
#include "TiCore.h" | ||
#include <QObject> | ||
#include <bb/cascades/Sheet> | ||
|
||
using namespace v8; | ||
namespace Ti { | ||
|
||
class TiErrorScreen : public QObject | ||
{ | ||
Q_OBJECT; | ||
public: | ||
static void ShowWithTryCatch(TryCatch); | ||
private: | ||
TiErrorScreen(); | ||
~TiErrorScreen(); | ||
void parseTryCatch(TryCatch); | ||
void buildAndShow(); | ||
QString _fileName; | ||
QString _sourceLine; | ||
QString _stackTrace; | ||
QString _exceptionName; | ||
QString _exceptionMessage; | ||
int _lineNumber; | ||
int _colNumber; | ||
bb::cascades::Sheet *_errorSheet; | ||
public slots: | ||
void onClicked(); | ||
void onClosed(); | ||
}; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.