rpexception.java

来自「java 文件下载器。可自定义」· Java 代码 · 共 67 行

JAVA
67
字号
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   RPException.java

package org.gudy.azureus2.pluginsimpl.remote;

import org.gudy.azureus2.core3.util.Debug;

public class RPException extends RuntimeException
{

	private static void checkErrorType(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");
		} else
		{
			return;
		}
	}

	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);
	}

	public String getRPType()
	{
		return null;
	}

	public Throwable getSerialisableObject()
	{
		Throwable t = getCause();
		if (t == null)
			return this;
		else
			return t;
	}

	public Class getErrorClass()
	{
		Throwable t = getCause();
		if (t == null)
			return null;
		else
			return t.getClass();
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?