view src/nabble/model/UpdatingException.java @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children
line wrap: on
line source

package nabble.model;


public final class UpdatingException extends RuntimeException {

	UpdatingException() {}

	UpdatingException(String msg) {
		super(msg);
	}

	public static boolean isIn(Throwable th) {
		while( th != null ) {
			if( th instanceof UpdatingException )
				return true;
			th = th.getCause();
		}
		return false;
	}
}