File: InvalidImageIndexException.java

package info (click to toggle)
java-imaging-utilities 0.14.2%2B3-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,280 kB
  • ctags: 3,725
  • sloc: java: 31,190; sh: 238; makefile: 53; xml: 30
file content (31 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (2)
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
/*
 * InvalidImageIndexException
 * 
 * Copyright (c) 2001, 2002, 2003 Marco Schmidt.
 * All rights reserved.
 */

package net.sourceforge.jiu.codecs;

import net.sourceforge.jiu.ops.OperationFailedException;

/**
 * This exception is thrown when the caller has defined an image
 * index that specifies the image to be loaded in a multiple-image
 * file and that index is unavailable.
 * Example: user has specified an image index of 5, which is the
 * sixth image in the file (counting starts at 0), 
 * but only three images are available.
 * @author Marco Schmidt
 */
public class InvalidImageIndexException extends OperationFailedException
{
	/**
	 * Creates new exception object with a given error message.
	 * @param message String with text describing the exact problem
	 */
	public InvalidImageIndexException(String message)
	{
		super(message);
	}
}