001package Torello.Java.Additional;
002
003import javax.json.*;
004
005/**
006 * Used to indicate that one of the elements within a {@link JsonArray} caused a Java
007 * <B>{@code ArithmeticException}</B> to throw when attempting to bind the element to a
008 * <B STYLE='color: red;'>Java Number Type</B>.
009 * 
010 * <EMBED CLASS=globalDefs DATA-STRUCT=JsonArray DATA-TYPE=Array DATA-TYPE_ABBREV=Arr>
011 * <EMBED CLASS='external-html' DATA-FILE-ID=JE_FIELD_ARR>
012 * <EMBED CLASS='external-html' DATA-FILE-ID=JE_MSG>
013 * <EMBED CLASS='external-html' DATA-FILE-ID=JE_MSG_JAAEX>
014 */
015@Torello.HTML.Tools.JavaDoc.JDHeaderBackgroundImg(EmbedTagFileID="JE_A_UL")
016public class JsonArithmeticArrException extends JsonBindingArrException
017{
018    /** <EMBED CLASS="external-html" DATA-FILE-ID="SVUIDEX">  */
019    public static final long serialVersionUID = 1;
020
021    /**
022     * Constructs a {@code JsonArithmeticArrException} with no specified detail messsage,
023     * and the user-provided convenience-field values.
024     * 
025     * @param cause The <B>{@code ArithmeticException}</B> which caused this exception to throw
026     * @param errorSourceJsonArray  <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJA>
027     * @param index                 <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_I>
028     * @param expectedJsonType      <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_EJT>
029     * @param valueRetrieved        <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_VR>
030     * @param methodReturnJavaType  <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_MRJT>
031     */
032    public JsonArithmeticArrException(
033            ArithmeticException cause,
034            JsonArray           errorSourceJsonArray,
035            int                 index,
036            JsonValue.ValueType expectedJsonType,
037            JsonValue           valueRetrieved,
038            Class<?>            methodReturnJavaType
039        )
040    {
041        super(
042            cause, errorSourceJsonArray, index, expectedJsonType, valueRetrieved,
043            methodReturnJavaType,
044            "An ArithmeticException has occured during the Json -> Java Type Conversion"
045        );
046    }
047
048    /**
049     * Constructs a {@code JsonArithmeticArrException} with the specified detail message, and
050     * user-provided convenience-field values.
051     * 
052     * @param message the detail message.
053     * @param cause The <B>{@code ArithmeticException}</B> which caused this exception to throw
054     * @param errorSourceJsonArray  <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJA>
055     * @param index                 <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_I>
056     * @param expectedJsonType      <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_EJT>
057     * @param valueRetrieved        <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_VR>
058     * @param methodReturnJavaType  <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_MRJT>
059     */
060    public JsonArithmeticArrException(
061            String              message,
062            ArithmeticException cause,
063            JsonArray           errorSourceJsonArray,
064            int                 index,
065            JsonValue.ValueType expectedJsonType,
066            JsonValue           valueRetrieved,
067            Class<?>            methodReturnJavaType
068        )
069    {
070        super(
071            message, cause, errorSourceJsonArray, index, expectedJsonType, valueRetrieved,
072            methodReturnJavaType
073        );
074    }
075}