001package Torello.Java.JSON; 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.JavaDoc.JDHeaderBackgroundImg(EmbedTagFileID="JE_A_UL") 016@Torello.JavaDoc.CSSLinks(FileNames="JSONExceptions.css") 017public class JsonArithmeticArrException extends JsonBindingArrException 018{ 019 /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */ 020 public static final long serialVersionUID = 1; 021 022 /** 023 * Constructs a {@code JsonArithmeticArrException} with no specified detail messsage, 024 * and the user-provided convenience-field values. 025 * 026 * @param cause The <B>{@code ArithmeticException}</B> which caused this exception to throw 027 * @param errorSourceJsonArray <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJA> 028 * @param index <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_I> 029 * @param expectedJsonType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_EJT> 030 * @param valueRetrieved <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_VR> 031 * @param methodReturnJavaType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_MRJT> 032 */ 033 public JsonArithmeticArrException( 034 ArithmeticException cause, 035 JsonArray errorSourceJsonArray, 036 int index, 037 JsonValue.ValueType expectedJsonType, 038 JsonValue valueRetrieved, 039 Class<?> methodReturnJavaType 040 ) 041 { 042 super( 043 cause, errorSourceJsonArray, index, expectedJsonType, valueRetrieved, 044 methodReturnJavaType, 045 "An ArithmeticException has occured during the Json -> Java Type Conversion" 046 ); 047 } 048 049 /** 050 * Constructs a {@code JsonArithmeticArrException} with the specified detail message, and 051 * user-provided convenience-field values. 052 * 053 * @param message the detail message. 054 * @param cause The <B>{@code ArithmeticException}</B> which caused this exception to throw 055 * @param errorSourceJsonArray <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJA> 056 * @param index <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_I> 057 * @param expectedJsonType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_EJT> 058 * @param valueRetrieved <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_VR> 059 * @param methodReturnJavaType <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_MRJT> 060 */ 061 public JsonArithmeticArrException( 062 String message, 063 ArithmeticException cause, 064 JsonArray errorSourceJsonArray, 065 int index, 066 JsonValue.ValueType expectedJsonType, 067 JsonValue valueRetrieved, 068 Class<?> methodReturnJavaType 069 ) 070 { 071 super( 072 message, cause, errorSourceJsonArray, index, expectedJsonType, valueRetrieved, 073 methodReturnJavaType 074 ); 075 } 076}