org.hpccsystems.commons.errors.WUException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-hpcc Show documentation
Show all versions of commons-hpcc Show documentation
Common library for HPCC functionality
package org.hpccsystems.commons.errors;
import java.rmi.RemoteException;
public class WUException extends Exception
{
/**
* Base Exception with a WUID field
* Useful in cases where workunit requests cause exceptions,
* and caller would like to know the offending WUID
*/
private static final long serialVersionUID = 1L;
String wuid = null;
public WUException(Throwable cause, String wuid)
{
super(cause);
setWuid(wuid);
}
public WUException(String message, RemoteException e, String wuid)
{
super(message, e);
setWuid(wuid);
}
public String getWuid()
{
return wuid;
}
public Boolean hasWuid()
{
return wuid != null && !wuid.isEmpty();
}
public void setWuid(String wuid)
{
this.wuid = wuid;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy