FileDocCategorySizeDatePackage
RPException.javaAPI DocAzureus 3.0.3.42156Tue Jan 10 13:50:50 GMT 2006org.gudy.azureus2.pluginsimpl.remote

RPException

public class RPException extends RuntimeException
author
parg

Fields Summary
Constructors Summary
public RPException(String str)

        super(str);
    
public RPException(String str, Throwable e)

        super(str, e);
        checkErrorType(e);
    
public RPException(Throwable e)

        super(e);
        checkErrorType(e);
    
Methods Summary
private static voidcheckErrorType(java.lang.Throwable e)

        if (e instanceof RPException) {
            Debug.outNoStack("RPExceptions chained together - stack trace, followed by other RPException stack trace.");
            Debug.outStackTrace();
            Debug.printStackTrace(e);
            throw new RuntimeException("cannot chain RPException instances together");
        }
    
public java.lang.ClassgetErrorClass()

        Throwable t = this.getCause();
        if (t == null) {return null;}
        return t.getClass();
    
public java.lang.StringgetRPType()

        return null;
    
public java.lang.ThrowablegetSerialisableObject()

        Throwable t = this.getCause();
        if (t == null) {
            return this;
        }
        else {
            return t;
        }
    
public java.lang.StringgetSerialisationMessage()

        return RPUtils.exceptionToString(this);