com.sonyericsson.hudson.plugins.metadata.model
Class JsonUtils.ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sonyericsson.hudson.plugins.metadata.model.JsonUtils.ParseException
All Implemented Interfaces:
Serializable
Enclosing class:
JsonUtils

public static class JsonUtils.ParseException
extends Exception

Exception thrown during the conversion from JSON to internal POJO representations if something went wrong. For example if a required field is missing.

See Also:
Serialized Form

Constructor Summary
JsonUtils.ParseException()
          Default constructor.
JsonUtils.ParseException(String message, net.sf.json.JSON json)
          Standard constructor.
JsonUtils.ParseException(String message, Throwable cause, net.sf.json.JSON json)
          Standard constructor.
JsonUtils.ParseException(Throwable cause, net.sf.json.JSON json)
          Standard constructor.
 
Method Summary
 net.sf.json.JSON getJson()
          The offending JSON object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonUtils.ParseException

public JsonUtils.ParseException(String message,
                                net.sf.json.JSON json)
Standard constructor.

Parameters:
message - the error message.
json - the offending JSON object.
See Also:
Exception.Exception(String)

JsonUtils.ParseException

public JsonUtils.ParseException(String message,
                                Throwable cause,
                                net.sf.json.JSON json)
Standard constructor.

Parameters:
message - the error message.
json - the offending JSON object.
cause - some other that caused the error.
See Also:
Exception.Exception(String, Throwable)

JsonUtils.ParseException

public JsonUtils.ParseException(Throwable cause,
                                net.sf.json.JSON json)
Standard constructor.

Parameters:
cause - some other that caused the error.
json - the offending JSON object.
See Also:
Exception.Exception(Throwable)

JsonUtils.ParseException

public JsonUtils.ParseException()
Default constructor.

Method Detail

getJson

public net.sf.json.JSON getJson()
The offending JSON object.

Returns:
the bad seed.


Copyright © 2004-2013. All Rights Reserved.