Skip to content

Commit 564e116

Browse files
committed
Initial release
1 parent a149661 commit 564e116

File tree

218 files changed

+11760
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+11760
-2
lines changed

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,77 @@
1-
# ANE-Exceptions
2-
Exception tracking Adobe AIR Native Extension
1+
This extension was built by [distriqt //](http://airnativeextensions.com)
2+
3+
4+
5+
# Exceptions
6+
7+
Exceptions is an AIR Native Extension to enable a global exception handler for iOS and Android.
8+
9+
This will catch and store information about crashes of your application allowing you to process
10+
them on the next application run. In using this extension you can report crashes and errors in
11+
your application to your own error logging server.
12+
13+
14+
### Features
15+
16+
- Catch exceptions
17+
- Process exceptions on startup
18+
- Single API interface - your code works across supported platforms with no modifications
19+
- Sample project code and ASDocs reference
20+
21+
22+
23+
## Documentation
24+
25+
This extension is very simple in the implementation, having only 2 main functions.
26+
27+
To start catching exceptions you simply call `setUncaughtExceptionHandler()` at
28+
some point at the beginning of your application.
29+
30+
```as3
31+
Exceptions.service.setUncaughtExceptionHandler();
32+
```
33+
34+
35+
To check if your application crashed previously you use the `hasPendingException()` function.
36+
37+
```as3
38+
if (Exceptions.service.hasPendingException())
39+
{
40+
var report:ExceptionReport = Exceptions.service.getPendingException();
41+
trace( "date: "+ new Date(report.timestamp).toLocaleString() );
42+
trace( "name: "+ report.name );
43+
trace( "reason: "+ report.reason );
44+
trace( "report: "+ report.report );
45+
}
46+
```
47+
48+
>
49+
> ### Note
50+
>
51+
> You can generally only have **one** exception handler in an application.
52+
>
53+
> So if you are using another library that tracks exceptions (Google Analytics or a bug tracker)
54+
> then the functionality provided here may not work or may stop the library from working.
55+
>
56+
> You should decide which is the more important method and ensure only one method is used
57+
> in your application.
58+
>
59+
60+
61+
## Native Extensions
62+
63+
The highest quality and widest range of Native Extensions for Adobe AIR
64+
65+
With many native extensions available, we are the largest provider of native extensions for AIR developers.
66+
Our mobile solutions allow developers to fast-forward development and focus on building great games and apps.
67+
68+
http://airnativeextensions.com
69+
70+
71+
72+
## Acknowledgements
73+
74+
This extension was made possible with support by [MovieStarPlanet](http://corporate.moviestarplanet.com/)
75+
76+
![MovieStarPlanet](https://raw.githubusercontent.com/distriqt/ANE-Memory/master/images/msp_logo.png)
77+

0 commit comments

Comments
 (0)