001package Torello.Java.JSON; 002 003import javax.json.*; 004 005/** 006 * Used to indicate that one of the properties within a {@link JsonObject} caused a Java 007 * <B>{@code ArithmeticException}</B> to throw when attempting to bind the property to a 008 * <B STYLE='color: red;'>Java Number Type</B>. 009 * 010 * <EMBED CLASS=globalDefs DATA-STRUCT=JsonObject DATA-TYPE=Object DATA-TYPE_ABBREV=Obj> 011 * <EMBED CLASS='external-html' DATA-FILE-ID=JE_FIELD_OBJ> 012 * <EMBED CLASS='external-html' DATA-FILE-ID=JE_MSG> 013 * <EMBED CLASS='external-html' DATA-FILE-ID=JE_MSG_JAOEX> 014 */ 015@Torello.JavaDoc.JDHeaderBackgroundImg(EmbedTagFileID="JE_A_UL") 016@Torello.JavaDoc.CSSLinks(FileNames="JSONExceptions.css") 017public class JsonArithmeticObjException extends JsonBindingObjException 018{ 019 /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */ 020 public static final long serialVersionUID = 1; 021 022 /** 023 * Constructs a {@code JsonArithmeticObjException} 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 errorSourceJsonObject <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJO> 028 * @param propertyName <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_PN> 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 JsonArithmeticObjException( 034 ArithmeticException cause, 035 JsonObject errorSourceJsonObject, 036 String propertyName, 037 JsonValue.ValueType expectedJsonType, 038 JsonValue valueRetrieved, 039 Class<?> methodReturnJavaType 040 ) 041 { 042 super( 043 cause, errorSourceJsonObject, propertyName, expectedJsonType, valueRetrieved, 044 methodReturnJavaType, 045 "An ArithmeticException has occured during the Json -> Java Type Conversion" 046 ); 047 } 048 049 /** 050 * Constructs a {@code JsonArithmeticObjException} 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 errorSourceJsonObject <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_ESJO> 056 * @param propertyName <EMBED CLASS='external-html' DATA-FILE-ID=JBEX_PN> 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 JsonArithmeticObjException( 062 String message, 063 ArithmeticException cause, 064 JsonObject errorSourceJsonObject, 065 String propertyName, 066 JsonValue.ValueType expectedJsonType, 067 JsonValue valueRetrieved, 068 Class<?> methodReturnJavaType 069 ) 070 { 071 super( 072 message, cause, errorSourceJsonObject, propertyName, expectedJsonType, valueRetrieved, 073 methodReturnJavaType 074 ); 075 } 076}