com.github.kubatatami.judonetworking.observers.ExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of judonetworking-observers Show documentation
Show all versions of judonetworking-observers Show documentation
Easy way of communicating to your servers.
The newest version!
package com.github.kubatatami.judonetworking.observers;
/**
* Created by Kuba on 13/05/14.
*/
public class ExceptionHandler {
public static void throwRuntimeException(Exception e){
if(e instanceof RuntimeException){
throw (RuntimeException)e;
}else {
throw new RuntimeException(e);
}
}
}