1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
/*
* InvalidFileStructureException
*
* Copyright (c) 2000, 2001, 2002, 2003 Marco Schmidt.
* All rights reserved.
*/
package net.sourceforge.jiu.codecs;
import net.sourceforge.jiu.ops.OperationFailedException;
/**
* This exception is thrown during image loading, when the decoding
* process is made impossible by errors in the image file.
* If a codec has recognized the file format but finds irregularities in the
* data and cannot continue loading, it is supposed to throw an instance of this
* exception class.
* An unexpected end of the input stream also falls into this category.
* This typically means that the file is corrupt, but of course it could
* also be because of an error in the codec implementation.
* <p>
* If the format is not recognized at all, a {@link WrongFileFormatException}
* should be thrown.
* <p>
* If the format is recognized but cannot be loaded because the codec
* does not fully support the file format, a {@link UnsupportedTypeException}
* should be thrown.
* @author Marco Schmidt
* @see UnsupportedTypeException
* @see WrongFileFormatException
*/
public class InvalidFileStructureException extends OperationFailedException
{
public InvalidFileStructureException(String message)
{
super(message);
}
}
|