File: WrongFileFormatException.java

package info (click to toggle)
java-imaging-utilities 0.14.2%2B3-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,304 kB
  • ctags: 3,737
  • sloc: java: 31,190; sh: 238; xml: 30; makefile: 19
file content (37 lines) | stat: -rw-r--r-- 1,158 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
32
33
34
35
36
37
/*
 * WrongFileFormatException
 * 
 * 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.
 * If a codec is sure that the file or input stream that was given to
 * it is not in the format supported by that codec, an instance of
 * this exception class is thrown.
 * This is usually the case if the magic byte sequence of that format
 * is not found at the beginning of the stream.
 * <p>
 * If there were errors during loading because of file corruption, an
 * {@link InvalidFileStructureException} 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 InvalidFileStructureException
 * @see UnsupportedTypeException
 */
public class WrongFileFormatException extends OperationFailedException
{
	public WrongFileFormatException(String message)
	{
		super(message);
	}
}