001    package helliker.id3;
002    
003    /*
004       Copyright (C) 2001 Jonathan Hilliker
005       This library is free software; you can redistribute it and/or
006       modify it under the terms of the GNU Lesser General Public
007       License as published by the Free Software Foundation; either
008       version 2.1 of the License, or (at your option) any later version.
009       This library is distributed in the hope that it will be useful,
010       but WITHOUT ANY WARRANTY; without even the implied warranty of
011       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012       Lesser General Public License for more details.
013       You should have received a copy of the GNU Lesser General Public
014       License along with this library; if not, write to the Free Software
015       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
016      */
017    /**
018     * This exception is thrown when an data in an id3v2 tag violates the id3v2
019     * standards.
020     */
021    
022    
023    public class ID3v2FormatException extends ID3Exception {
024    
025      /**
026       * Create an ID3v2FormatException with a default message
027       */
028      public ID3v2FormatException() {
029        super("ID3v2 tag is not formatted correctly.");
030      }
031    
032    
033      /**
034       * Create an ID3v2FormatException with a specified message
035       *
036       *@param msg  the message for this exception
037       */
038      public ID3v2FormatException(String msg) {
039        super(msg);
040      }
041    
042      public ID3v2FormatException(Throwable cause){
043          super(cause.getMessage());
044          initCause(cause);
045      }
046    
047    }
048