Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malinskiy/sofa
The one true exception handler for Android
https://github.com/malinskiy/sofa
android exceptions
Last synced: 3 months ago
JSON representation
The one true exception handler for Android
- Host: GitHub
- URL: https://github.com/malinskiy/sofa
- Owner: Malinskiy
- License: other
- Created: 2016-02-13T02:42:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T16:32:52.000Z (almost 9 years ago)
- Last Synced: 2024-10-16T15:12:28.585Z (3 months ago)
- Topics: android, exceptions
- Language: Java
- Homepage:
- Size: 92.8 KB
- Stars: 49
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.malinskiy/sofa/badge.svg)]
(https://maven-badges.herokuapp.com/maven-central/com.malinskiy/sofa) [![Build Status](https://travis-ci.org/Malinskiy/Sofa.svg?branch=master)](https://travis-ci.org/Malinskiy/Sofa) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Sofa-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/3184)# Handling the exceptions:
```java
try {
something;
} catch(Exception e) {
StackOverflow.search(e);
}
```
# Sofa
So probably you're tired of copy pasting logcat exceptions and stack traces into search, right? Now you can click links inside the logcat and browse for possible resolutions.# Usage
Just install this comfy sofa into your application:
```java
public class MainApplication extends Application {@Override public void onCreate() {
super.onCreate();
Sofa.install();
}
}
```and you'll see [StackOverflow](http://stackoverflow.com) search links in your logcat
```
E/Sofa: http://stackoverflow.com/search?q=android.os.NetworkOnMainThreadException
```## Get it
Gradle:
```groovy
repositories {
...
mavenCentral()
...
}
...
dependencies {
...
compile 'com.malinskiy:sofa:0.1.0'
...
}
```Inspired by [Jordan Hall's](https://github.com/DivineOmega) [post](https://twitter.com/DivineOmega/status/695744177557106688)
## License
```
Copyright 2016 Anton MalinskiyLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
```