001package Torello.HTML.Tools.Images; 002 003/** 004 * Used when an Image-{@code URL} appears to download an image succesfully, and does not generate 005 * any {@code Exception} throws, but actually turns out to be nothing more than a null referece. 006 * 007 * @see ImageScraper 008 */ 009public class NullImageException extends RuntimeException 010{ 011 /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */ 012 public static final long serialVersionUID = 1; 013 014 /** Constructs a {@code NullImageException} with no detail message. */ 015 public NullImageException() 016 { super(); } 017 018 /** 019 * Constructs a {@code NullImageException} with the specified detail message. 020 * @param message the detail message. 021 */ 022 public NullImageException(String message) 023 { super(message); } 024 025 /** 026 * Constructs a new {@code NullImageException} with the specified detail message and cause. 027 * 028 * <BR /><BR /><B CLASS=JDDescLabel>NOTE:</B> 029 * 030 * <BR /><BR />The detail message associated with cause is not automatically incorporated into 031 * this exception's detail message. 032 * 033 * @param message The detail message (which is saved for later retrieval by the 034 * {@code Throwable.getMessage()} method). 035 * 036 * @param cause the cause (which is saved for later retrieval by the 037 * {@code Throwable.getCause()} method). (A null value is permitted, and indicates that the 038 * cause is nonexistent or unknown.) 039 */ 040 public NullImageException(String message, Throwable cause) 041 { super(message, cause); } 042 043 /** 044 * Constructs a new exception with the specified cause and a detail message of 045 * {@code (cause==null ? null : cause.toString())} (which typically contains the class and 046 * detail message of cause). 047 * 048 * <BR /><BR />This constructor is useful for exceptions that are little more than wrappers for 049 * other {@code Throwable's}. 050 * 051 * @param cause The cause (which is saved for later retrieval by the 052 * {@code Throwable.getCause()} method). (A null value is permitted, and indicates that the 053 * cause is nonexistent or unknown.) 054 */ 055 public NullImageException(Throwable cause) 056 { super(cause); } 057} 058