001 /* 002 * WrongFileFormatException 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. 014 * If a codec is sure that the file or input stream that was given to 015 * it is not in the format supported by that codec, an instance of 016 * this exception class is thrown. 017 * This is usually the case if the magic byte sequence of that format 018 * is not found at the beginning of the stream. 019 * <p> 020 * If there were errors during loading because of file corruption, an 021 * {@link InvalidFileStructureException} should be thrown. 022 * <p> 023 * If the format is recognized but cannot be loaded because the codec 024 * does not fully support the file format, a {@link UnsupportedTypeException} 025 * should be thrown. 026 * 027 * @author Marco Schmidt 028 * @see InvalidFileStructureException 029 * @see UnsupportedTypeException 030 */ 031 public class WrongFileFormatException extends OperationFailedException 032 { 033 public WrongFileFormatException(String message) 034 { 035 super(message); 036 } 037 }