de.hpi.fgis.dude.exceptions
Class InvalidJsonException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.NoSuchElementException
                  extended by de.hpi.fgis.dude.exceptions.InvalidJsonException
All Implemented Interfaces:
Serializable

public class InvalidJsonException
extends NoSuchElementException

This exception should be raised if an Json String could not be converted into an object.

Author:
Matthias Pohl
See Also:
Serialized Form

Constructor Summary
InvalidJsonException()
          Calls NoSuchElementException.NoSuchElementException().
InvalidJsonException(String msg)
          Calls NoSuchElementException.NoSuchElementException(String).
InvalidJsonException(String msg, Throwable cause)
          Calls NoSuchElementException.NoSuchElementException(String) and stores the passed cause.
InvalidJsonException(Throwable cause)
          Calls NoSuchElementException.NoSuchElementException() and stores the passed cause.
 
Method Summary
 Throwable getCause()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

InvalidJsonException

public InvalidJsonException()
Calls NoSuchElementException.NoSuchElementException().


InvalidJsonException

public InvalidJsonException(String msg)
Calls NoSuchElementException.NoSuchElementException(String).

Parameters:
msg - The error message.

InvalidJsonException

public InvalidJsonException(Throwable cause)
Calls NoSuchElementException.NoSuchElementException() and stores the passed cause.

Parameters:
cause - The exception that caused this exception.

InvalidJsonException

public InvalidJsonException(String msg,
                            Throwable cause)
Calls NoSuchElementException.NoSuchElementException(String) and stores the passed cause.

Parameters:
msg - The error message.
cause - The exception that caused this exception.
Method Detail

getCause

public Throwable getCause()
Overrides:
getCause in class Throwable
See Also:
Throwable.getCause()


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.