Code example for ErrorHandler

Methods: handleError

0
	public void run() { 
		try { 
			this.delegate.run();
		} 
		catch (UndeclaredThrowableException ex) {
			this.errorHandler.handleError(ex.getUndeclaredThrowable());
		} 
		catch (Throwable ex) {
			this.errorHandler.handleError(ex);
		} 
	} 
 
	@Override 
	public String toString() {
		return "DelegatingErrorHandlingRunnable for " + this.delegate;
	} 
 
} 
Experience pair programming with AI  Get Codota for Java