001package Torello.Browser; 
002
003import Torello.Java.UnreachableError;
004
005/**
006 * Error used to indicate that an internal problem involving JSON number conversion from Java into
007 * JSON has occured.
008 * 
009 * <BR /><BR /><DIV CLASS=JDHint>
010 * Generally, the class {@link NumberCrap} is intended for internal &amp; proprietary use only.  It 
011 * really doesn't need to be invoked by external, user code.  It remains public because, indeed, 
012 * there are classes which reside in packages other than {@code 'Torello.Browser'} invoke it.  As a
013 * result, it must be declared public.  And because JavaDoc publishes anything which has the 
014 * reserved keyword 'public', you the end user can see the methods &amp; fields.
015 * 
016 * <BR /><BR />
017 * ⚠️ Class {@link NumberCrap} really is intended strictly for Java-HTML proprietary invocations.  
018 * Because that class is declared 'public', {@link UnreachableError} was replaced by this error.
019 * </DIV>
020 */
021public class InvalidNumberTypeError extends Error 
022{
023    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */
024    protected static final long serialVersionUID = 1L;
025
026    /** Constructs a {@code InvalidNumberTypeError} with no detail message. */
027    public InvalidNumberTypeError()
028    { super(); }
029
030    /**
031     * Constructs a {@code InvalidNumberTypeError} with the specified detail message.
032     * @param message the detail message.
033     */
034    public InvalidNumberTypeError(String message)
035    { super(message); }
036
037    /**
038     * Constructs a new exception with the specified detail message and cause.
039     * 
040     * <BR /><BR /><DIV CLASS=JDHint>
041     * <B STYLE='color:red;'>Note:</B> The detail message associated with cause is not
042     * automatically incorporated into this exception's detail message.
043     * </DIV>
044     * 
045     * @param message The detail message (which is saved for later retrieval by the
046     * {@code Throwable.getMessage()} method).
047     * 
048     * @param cause the cause (which is saved for later retrieval by the
049     * {@code Throwable.getCause()} method).  (A null value is permitted, and indicates that the
050     * cause is non-existent or unknown.)
051     */
052    public InvalidNumberTypeError(String message, Throwable cause)
053    { super(message, cause); }
054
055    /**
056     * Constructs a new exception with the specified cause and a detail message of
057     * {@code (cause==null ? null : cause.toString())} (which typically contains the class and
058     * detail message of cause).  This constructor is useful for exceptions that are little more
059     * than wrappers for other throwables.
060     * 
061     * @param cause The cause (which is saved for later retrieval by the
062     * {@code Throwable.getCause()} method).  (A null value is permitted, and indicates that the
063     * cause is non-existent or unknown.)
064     */
065    public InvalidNumberTypeError(Throwable cause)
066    { super(cause); }
067}