juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [01/51] [partial] incubator-juneau-website git commit: Javadoc updates.
Date Wed, 07 Jun 2017 00:56:11 GMT
Repository: incubator-juneau-website
Updated Branches:
  refs/heads/asf-site ba04825e2 -> 017373e36


http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/017373e3/content/site/apidocs/src-html/org/apache/juneau/InvalidDataConversionException.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/InvalidDataConversionException.html
b/content/site/apidocs/src-html/org/apache/juneau/InvalidDataConversionException.html
index c7675c7..009038b 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/InvalidDataConversionException.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/InvalidDataConversionException.html
@@ -20,44 +20,45 @@
 <span class="sourceLineNo">012</span>// ***************************************************************************************************************************<a
name="line.12"></a>
 <span class="sourceLineNo">013</span>package org.apache.juneau;<a name="line.13"></a>
 <span class="sourceLineNo">014</span><a name="line.14"></a>
-<span class="sourceLineNo">015</span>import java.text.*;<a name="line.15"></a>
+<span class="sourceLineNo">015</span>import static org.apache.juneau.internal.ClassUtils.*;<a
name="line.15"></a>
 <span class="sourceLineNo">016</span><a name="line.16"></a>
-<span class="sourceLineNo">017</span>import org.apache.juneau.internal.*;<a
name="line.17"></a>
-<span class="sourceLineNo">018</span>import org.apache.juneau.json.*;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * General invalid conversion exception.<a
name="line.21"></a>
-<span class="sourceLineNo">022</span> * &lt;p&gt;<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * Exception that gets thrown if you try
to perform an invalid conversion, such as when calling {@code ObjectMap.getInt(...)} on a
non-numeric &lt;code&gt;String&lt;/code&gt;.<a name="line.23"></a>
-<span class="sourceLineNo">024</span> */<a name="line.24"></a>
-<span class="sourceLineNo">025</span>public final class InvalidDataConversionException
extends RuntimeException {<a name="line.25"></a>
-<span class="sourceLineNo">026</span><a name="line.26"></a>
-<span class="sourceLineNo">027</span>   private static final long serialVersionUID
= 1L;<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>   /**<a name="line.29"></a>
-<span class="sourceLineNo">030</span>    * @param toType Attempting to convert
to this class type.<a name="line.30"></a>
-<span class="sourceLineNo">031</span>    * @param cause The cause.<a name="line.31"></a>
-<span class="sourceLineNo">032</span>    * @param value The value being converted.<a
name="line.32"></a>
-<span class="sourceLineNo">033</span>    */<a name="line.33"></a>
-<span class="sourceLineNo">034</span>   public InvalidDataConversionException(Object
value, Class&lt;?&gt; toType, Exception cause) {<a name="line.34"></a>
-<span class="sourceLineNo">035</span>      super(MessageFormat.format("Invalid
data conversion from type ''{0}'' to type ''{1}''.  Value={2}.", ClassUtils.getReadableClassNameForObject(value),
ClassUtils.getReadableClassName(toType), getValue(value)), cause);<a name="line.35"></a>
-<span class="sourceLineNo">036</span>   }<a name="line.36"></a>
-<span class="sourceLineNo">037</span><a name="line.37"></a>
-<span class="sourceLineNo">038</span>   /**<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    * @param toType Attempting to convert
to this class type.<a name="line.39"></a>
-<span class="sourceLineNo">040</span>    * @param cause The cause.<a name="line.40"></a>
-<span class="sourceLineNo">041</span>    * @param value The value being converted.<a
name="line.41"></a>
-<span class="sourceLineNo">042</span>    */<a name="line.42"></a>
-<span class="sourceLineNo">043</span>   public InvalidDataConversionException(Object
value, ClassMeta&lt;?&gt; toType, Exception cause) {<a name="line.43"></a>
-<span class="sourceLineNo">044</span>      super(MessageFormat.format("Invalid
data conversion from type ''{0}'' to type ''{1}''.  Value={2}.", ClassUtils.getReadableClassNameForObject(value),
toType.toString(), getValue(value)), cause);<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   }<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>   private static String getValue(Object
o) {<a name="line.47"></a>
-<span class="sourceLineNo">048</span>      if (o instanceof Class)<a name="line.48"></a>
-<span class="sourceLineNo">049</span>         return "'" + ClassUtils.getReadableClassName((Class&lt;?&gt;)o)
+ "'";<a name="line.49"></a>
-<span class="sourceLineNo">050</span>      return JsonSerializer.DEFAULT_LAX
== null ? "'" + o.toString() + "'" : JsonSerializer.DEFAULT_LAX.toString(o);<a name="line.50"></a>
-<span class="sourceLineNo">051</span>   }<a name="line.51"></a>
-<span class="sourceLineNo">052</span>}<a name="line.52"></a>
+<span class="sourceLineNo">017</span>import java.text.*;<a name="line.17"></a>
+<span class="sourceLineNo">018</span><a name="line.18"></a>
+<span class="sourceLineNo">019</span>import org.apache.juneau.json.*;<a name="line.19"></a>
+<span class="sourceLineNo">020</span><a name="line.20"></a>
+<span class="sourceLineNo">021</span>/**<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * General invalid conversion exception.<a
name="line.22"></a>
+<span class="sourceLineNo">023</span> * &lt;p&gt;<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * Exception that gets thrown if you try
to perform an invalid conversion, such as when calling {@code ObjectMap.getInt(...)} on a
non-numeric &lt;code&gt;String&lt;/code&gt;.<a name="line.24"></a>
+<span class="sourceLineNo">025</span> */<a name="line.25"></a>
+<span class="sourceLineNo">026</span>public final class InvalidDataConversionException
extends RuntimeException {<a name="line.26"></a>
+<span class="sourceLineNo">027</span><a name="line.27"></a>
+<span class="sourceLineNo">028</span>   private static final long serialVersionUID
= 1L;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>   /**<a name="line.30"></a>
+<span class="sourceLineNo">031</span>    * @param toType Attempting to convert
to this class type.<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    * @param cause The cause.<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    * @param value The value being converted.<a
name="line.33"></a>
+<span class="sourceLineNo">034</span>    */<a name="line.34"></a>
+<span class="sourceLineNo">035</span>   public InvalidDataConversionException(Object
value, Class&lt;?&gt; toType, Exception cause) {<a name="line.35"></a>
+<span class="sourceLineNo">036</span>      super(MessageFormat.format("Invalid
data conversion from type ''{0}'' to type ''{1}''.  Value={2}.", getReadableClassNameForObject(value),
getReadableClassName(toType), getValue(value)), cause);<a name="line.36"></a>
+<span class="sourceLineNo">037</span>   }<a name="line.37"></a>
+<span class="sourceLineNo">038</span><a name="line.38"></a>
+<span class="sourceLineNo">039</span>   /**<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    * @param toType Attempting to convert
to this class type.<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    * @param cause The cause.<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    * @param value The value being converted.<a
name="line.42"></a>
+<span class="sourceLineNo">043</span>    */<a name="line.43"></a>
+<span class="sourceLineNo">044</span>   public InvalidDataConversionException(Object
value, ClassMeta&lt;?&gt; toType, Exception cause) {<a name="line.44"></a>
+<span class="sourceLineNo">045</span>      super(MessageFormat.format("Invalid
data conversion from type ''{0}'' to type ''{1}''.  Value={2}.", getReadableClassNameForObject(value),
toType.toString(), getValue(value)), cause);<a name="line.45"></a>
+<span class="sourceLineNo">046</span>   }<a name="line.46"></a>
+<span class="sourceLineNo">047</span><a name="line.47"></a>
+<span class="sourceLineNo">048</span>   private static String getValue(Object
o) {<a name="line.48"></a>
+<span class="sourceLineNo">049</span>      if (o instanceof Class)<a name="line.49"></a>
+<span class="sourceLineNo">050</span>         return "'" + getReadableClassName((Class&lt;?&gt;)o)
+ "'";<a name="line.50"></a>
+<span class="sourceLineNo">051</span>      return JsonSerializer.DEFAULT_LAX
== null ? "'" + o.toString() + "'" : JsonSerializer.DEFAULT_LAX.toString(o);<a name="line.51"></a>
+<span class="sourceLineNo">052</span>   }<a name="line.52"></a>
+<span class="sourceLineNo">053</span>}<a name="line.53"></a>
 
 
 


Mime
View raw message