go>> sosl>> 返回
项目作者: theasianpianist

项目描述 :
StackOverflow Search Library
高级语言: Java
项目地址: git://github.com/theasianpianist/sosl.git
创建时间: 2017-05-02T01:34:03Z
项目社区:https://github.com/theasianpianist/sosl

开源协议:Other

下载


StackOverflow Search Library

Update 2.0: Try/catch blocks are no longer needed, you can now set the default exception handler to an instance of this class.

A simple Java library that searches Google and StackOverflow for exceptions that are thrown during runtime.

A pre-built JAR is included in the /target directory in case you don’t want to build your own.

Usage: Simply import the library, then set the default exception handler to a new instance of the class, as shown below.

  1. import tk.lawrencelee.sosl;
  1. public static void main(String[] args) {
  2. Thread.setDefaultUncaughtExceptionHandler(new sosl());
  3. //Rest of your code
  4. }

NOTE: Doesn’t work on Linux because of poor integration with the Java Desktop API