All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ssssssss.script.exception.MagicScriptRuntimeException Maven / Gradle / Ivy

The newest version!
package org.ssssssss.script.exception;

public class MagicScriptRuntimeException extends RuntimeException {

	public MagicScriptRuntimeException() {
	}

	public MagicScriptRuntimeException(String message) {
		super(message);
	}

	public MagicScriptRuntimeException(Throwable cause) {
		super(cause);
	}

	public static MagicScriptRuntimeException create(Object target){
		if(target instanceof Throwable){
			return new MagicScriptRuntimeException((Throwable) target);
		}else if(target instanceof String){
			return new MagicScriptRuntimeException(target.toString());
		}
		return new MagicScriptRuntimeException();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy