📄 errorhandler.java
字号:
/*
* Stun4j, the OpenSource Java Solution for NAT and Firewall Traversal.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.stun4j.stack;
/**
* Generic Error Handler.
*
* <p>Organisation: <p> Louis Pasteur University, Strasbourg, France.</p>
* <p>Network Research Team (http://www-r2.u-strasbg.fr)</p></p>
* @author Emil Ivov
* @version 0.1
*/
interface ErrorHandler
{
/**
* Called when an error has occurred which may have caused data loss but the
* calling thread is still running.
*
* @param message A message describing the error
* @param error The error itself.
*/
public void handleError(String message, Throwable error);
/**
* Called when a fatal error has occurred and the calling thread will exit.
*
* @param callingThread the thread where the error has occurred
* @param message a message describing the error.
* @param error the error itself.
*/
public void handleFatalError(Runnable callingThread, String message, Throwable error);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -