com.badlogic.gdx.utils
Class SerializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.badlogic.gdx.utils.SerializationException
- All Implemented Interfaces:
- java.io.Serializable
public class SerializationException
- extends java.lang.RuntimeException
Indicates an error during serialization due to misconfiguration or during deserialization due to invalid input data.
- Author:
- Nathan Sweet
- See Also:
- Serialized Form
Method Summary |
void |
addTrace(java.lang.String info)
Adds information to the exception message about where in the the object graph serialization failure occurred. |
boolean |
causedBy(java.lang.Class type)
Returns true if any of the exceptions that caused this exception are of the specified type. |
java.lang.String |
getMessage()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SerializationException
public SerializationException()
SerializationException
public SerializationException(java.lang.String message,
java.lang.Throwable cause)
SerializationException
public SerializationException(java.lang.String message)
SerializationException
public SerializationException(java.lang.Throwable cause)
causedBy
public boolean causedBy(java.lang.Class type)
- Returns true if any of the exceptions that caused this exception are of the specified type.
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
addTrace
public void addTrace(java.lang.String info)
- Adds information to the exception message about where in the the object graph serialization failure occurred. Serializers
can catch
SerializationException
, add trace information, and rethrow the exception.
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)