FileDocCategorySizeDatePackage
ID3Exception.javaAPI Docjid3 0.461668Sun Feb 06 18:11:30 GMT 2005org.blinkenlights.jid3

ID3Exception.java

/*
 * ID3Exception.java
 *
 * Created on 7-Oct-2003
 *
 * Copyright (C)2003,2004 Paul Grebenc
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * $Id: ID3Exception.java,v 1.5 2005/02/06 18:11:30 paul Exp $
 */

package org.blinkenlights.jid3;

import java.io.*;

/**
 * @author paul
 *
 * Exception thrown to indicate ID3 related errors.
 *
 */
public class ID3Exception extends Exception
{
    public ID3Exception()
    {
        super();
    }

    public ID3Exception(String arg0)
    {
        super(arg0);
    }

    public ID3Exception(Throwable arg0)
    {
        super(arg0);
    }

    public ID3Exception(String arg0, Throwable arg1)
    {
        super(arg0, arg1);
    }
    
    public static String getStackTrace(Throwable oThrowable)
    {
        StringWriter oSW = new StringWriter();
        oThrowable.printStackTrace(new PrintWriter(oSW));
        return oSW.getBuffer().toString();
    }
}