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

hudson.remoting.ProxyException Maven / Gradle / Ivy

Go to download

Contains the bootstrap code to bridge separate JVMs into a single semi-shared space. Reusable outside Hudson.

The newest version!
/*******************************************************************************
 *
 * Copyright (c) 2004-2009 Oracle Corporation.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors: 
*
*    Kohsuke Kawaguchi
 *     
 *
 *******************************************************************************/ 

package hudson.remoting;

import java.io.IOException;

/**
 * Used when the exception thrown by the remoted code cannot be serialized.
 *
 * 

* This exception captures the part of the information of the original exception * so that the caller can get some information about the problem that happened. * * @author Kohsuke Kawaguchi */ public class ProxyException extends IOException { public ProxyException(Throwable cause) { super(cause.toString()); // use toString() to capture the class name and error message setStackTrace(cause.getStackTrace()); // wrap all the chained exceptions if(cause.getCause()!=null) initCause(new ProxyException(cause.getCause())); } /** * {@link ProxyException} all the way down. */ @Override public ProxyException getCause() { return (ProxyException)super.getCause(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy