
water.DException Maven / Gradle / Ivy
package water;
/** A Distributed Exception - an exception originally thrown on one node
* and passed to another.
*/
public class DException extends Iced {
final H2ONode _h2o; // Original throwing node
final String _exClass; // Structural breakdown of the original exception
final String _throwerClass; // Class of thrower (probably subclass of MRTask)
final DException _cause;
final String _msg;
final Stk[] _stk;
DException( Throwable ex, Class thrower_clz ) {
_h2o = H2O.SELF;
Throwable cex = ex.getCause();
while( ex instanceof DistributedException && cex != null )
{ ex = cex; cex = ex.getCause(); }
_throwerClass = thrower_clz.toString();
_exClass = ex.getClass().toString();
_cause = cex==null ? null : new DException(cex,thrower_clz);
_msg = ex.getMessage();
StackTraceElement stk[] = ex.getStackTrace();
_stk = new Stk[stk.length];
for( int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy