APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.utils

public Class SerializationException

extends RuntimeException
Class Inheritance

Indicates an error during serialization due to misconfiguration or during deserialization due to invalid input data.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private StringBuilder

Constructor Summary

AccessConstructor and Description
public
public
public
public

Method Summary

Modifier and TypeMethod and Description
public void
addTrace(String info)

Adds information to the exception message about where in the the object graph serialization failure occurred.

public boolean
causedBy(Class<T> type)

Returns true if any of the exceptions that caused this exception are of the specified type.

private boolean
causedBy(Throwable ex, Class<T> type)

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Field Detail

traceback to summary
private StringBuilder trace

Constructor Detail

SerializationExceptionback to summary
public SerializationException()
SerializationExceptionback to summary
public SerializationException(String message, Throwable cause)
SerializationExceptionback to summary
public SerializationException(String message)
SerializationExceptionback to summary
public SerializationException(Throwable cause)

Method Detail

addTraceback to summary
public void addTrace(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.

causedByback to summary
public boolean causedBy(Class<T> type)

Returns true if any of the exceptions that caused this exception are of the specified type.

causedByback to summary
private boolean causedBy(Throwable ex, Class<T> type)
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.