001 /* 002 * InvalidImageIndexException 003 * 004 * Copyright (c) 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 when the caller has defined an image 014 * index that specifies the image to be loaded in a multiple-image 015 * file and that index is unavailable. 016 * Example: user has specified an image index of 5, which is the 017 * sixth image in the file (counting starts at 0), 018 * but only three images are available. 019 * @author Marco Schmidt 020 */ 021 public class InvalidImageIndexException extends OperationFailedException 022 { 023 /** 024 * Creates new exception object with a given error message. 025 * @param message String with text describing the exact problem 026 */ 027 public InvalidImageIndexException(String message) 028 { 029 super(message); 030 } 031 }