001 /* 002 * InvalidFileStructureException 003 * 004 * Copyright (c) 2000, 2001, 2002, 2003 Marco Schmidt. 005 * All rights reserved. 006 */ 007 008 package net.sourceforge.jiu.codecs; 009 010 import net.sourceforge.jiu.ops.OperationFailedException; 011 012 /** 013 * This exception is thrown during image loading, when the decoding 014 * process is made impossible by errors in the image file. 015 * If a codec has recognized the file format but finds irregularities in the 016 * data and cannot continue loading, it is supposed to throw an instance of this 017 * exception class. 018 * An unexpected end of the input stream also falls into this category. 019 * This typically means that the file is corrupt, but of course it could 020 * also be because of an error in the codec implementation. 021 * <p> 022 * If the format is not recognized at all, a {@link WrongFileFormatException} 023 * should be thrown. 024 * <p> 025 * If the format is recognized but cannot be loaded because the codec 026 * does not fully support the file format, a {@link UnsupportedTypeException} 027 * should be thrown. 028 * @author Marco Schmidt 029 * @see UnsupportedTypeException 030 * @see WrongFileFormatException 031 */ 032 public class InvalidFileStructureException extends OperationFailedException 033 { 034 public InvalidFileStructureException(String message) 035 { 036 super(message); 037 } 038 }