org.jaudiotagger.tag
Class InvalidTagException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jaudiotagger.tag.TagException
              extended by org.jaudiotagger.tag.InvalidTagException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidDataTypeException, InvalidFrameException

public class InvalidTagException
extends TagException

An InvalidTagException is thrown if a parse error occurs while a tag is being read from a file. This is different from a TagNotFoundException. Each tag (or MP3 Frame Header) has an ID string or some way saying that it simply exists. If this string is missing, TagNotFoundException is thrown. If the ID string exists, then any other error while reading throws an InvalidTagException.

Version:
$Revision: 1.5 $
See Also:
Serialized Form

Constructor Summary
InvalidTagException()
          Creates a new InvalidTagException datatype.
InvalidTagException(java.lang.String msg)
          Creates a new InvalidTagException datatype.
InvalidTagException(java.lang.String msg, java.lang.Throwable ex)
          Creates a new InvalidTagException datatype.
InvalidTagException(java.lang.Throwable ex)
          Creates a new InvalidTagException datatype.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidTagException

public InvalidTagException()
Creates a new InvalidTagException datatype.


InvalidTagException

public InvalidTagException(java.lang.Throwable ex)
Creates a new InvalidTagException datatype.

Parameters:
ex - the cause.

InvalidTagException

public InvalidTagException(java.lang.String msg)
Creates a new InvalidTagException datatype.

Parameters:
msg - the detail message.

InvalidTagException

public InvalidTagException(java.lang.String msg,
                           java.lang.Throwable ex)
Creates a new InvalidTagException datatype.

Parameters:
msg - the detail message.
ex - the cause.