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

com.alibaba.tmq.client.util.Exception.ChainedThrowable Maven / Gradle / Ivy

package com.alibaba.tmq.client.util.Exception;

import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.Serializable;

/**
 * ʵ�ִ˽ӿڵ��쳣, ������һ���쳣�����.
 *
 * @author Michael Zhou
 * @version $Id: ChainedThrowable.java 509 2004-02-16 05:42:07Z baobao $
 */
public interface ChainedThrowable extends Serializable {
    /**
     * ȡ���쳣������.
     *
     *  �쳣������.
     */
    Throwable getCause();

    /**
     * ��ӡ����ջ����׼����.
     */
    void printStackTrace();

    /**
     * ��ӡ����ջ��ָ�������.
     *
     *  stream ����ֽ���.
     */
    void printStackTrace(PrintStream stream);

    /**
     * ��ӡ����ջ��ָ�������.
     *
     *  writer ����ַ���.
     */
    void printStackTrace(PrintWriter writer);

    /**
     * ��ӡ�쳣�ĵ���ջ, �����������쳣����Ϣ.
     *
     *  writer ��ӡ�������
     */
    void printCurrentStackTrace(PrintWriter writer);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy