这是代码:
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
class UnCatchExceptionThread extends Thread{
public UnCatchExceptionThread(String name){
this.setName(name);
}
@Override
public void run() {
System.out.println("Thread name is: " + this.getName());
throw new RuntimeException();
}
}
class UnCatchExceptionHandler implements Thread.UncaughtExceptionHandler{
@Override
public void uncaughtException(Thread t, Throwable e) {
System.out.println("catch " + e + " from " + t.getName());
}
}
class HandlerFactory implements ThreadFactory{
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(r);
t.setUncaughtExceptionHandler(new UnCatchExceptionHandler());
return t;
}
}
public class CaptureException …Run Code Online (Sandbox Code Playgroud) 我有一个github页面(lc87624.github.com),我希望我的域名(" www.gemoji.me "和" blog.gemoji.me ")链接到此页面.我尝试添加两个指向" lc87624.github.com "的CNAME记录,但是当我访问我的域时,它显示了github的错误页面,说"页面不存在!".有人可以帮帮我吗?
PS:我的github页面是一个使用名为"octopress"的框架的博客,我已经向源分支添加了一个CNAME文件.