001package Torello.Java; 002 003/** 004 * General purpose exception used for poorly formatted {@code String's}, or for any {@code String} 005 * that does not meet some (or any) expected design, protocol, format or criteria. 006 */ 007public class StringFormatException extends RuntimeException 008{ 009 /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */ 010 public static final long serialVersionUID = 1; 011 012 /** Constructs a {@code StringFormatException} with no detail message. */ 013 public StringFormatException() 014 { super(); } 015 016 /** 017 * Constructs a {@code StringFormatException} with the specified detail message. 018 * @param message the detail message. 019 */ 020 public StringFormatException(String message) 021 { super(message); } 022 023 /** 024 * Constructs a new {@code StringFormatException} with the specified detail message and cause. 025 * 026 * <BR /><BR /><B CLASS=JDDescLabel>NOTE:</B> 027 * 028 * <BR /><BR />The detail message associated with cause is not automatically incorporated into 029 * this exception's detail message. 030 * 031 * @param message The detail message (which is saved for later retrieval by the 032 * {@code Throwable.getMessage()} method). 033 * 034 * @param cause the cause (which is saved for later retrieval by the 035 * {@code Throwable.getCause()} method). (A null value is permitted, and indicates that the 036 * cause is nonexistent or unknown.) 037 */ 038 public StringFormatException(String message, Throwable cause) 039 { super(message, cause); } 040 041 /** 042 * Constructs a new {@code StringFormatException} with the specified cause and a detail message 043 * of {@code (cause==null ? null : cause.toString())} (which typically contains the class and 044 * detail message of cause). This constructor is useful for exceptions that are little more 045 * than wrappers for other throwables. 046 * 047 * @param cause The cause (which is saved for later retrieval by the 048 * {@code Throwable.getCause()} method). (A null value is permitted, and indicates that the 049 * cause is nonexistent or unknown.) 050 */ 051 public StringFormatException(Throwable cause) 052 { super(cause); } 053}