Class SerializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.spongepowered.configurate.ConfigurateException
org.spongepowered.configurate.serialize.SerializationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CoercionFailedException
Exception thrown on errors encountered while using type serializers.
- Since:
- 4.0.0
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreate an exception with unknown message and cause.SerializationException(AnnotatedType expectedType, String message) Create an exception without a cause.SerializationException(AnnotatedType expectedType, String message, Throwable cause) Create an exception with message and wrapped cause.SerializationException(AnnotatedType expectedType, Throwable cause) Create an exception with a cause and no additional information.SerializationException(Type expectedType, String message) Create an exception without a cause.SerializationException(Type expectedType, String message, Throwable cause) Create an exception with message and wrapped cause.SerializationException(Type expectedType, Throwable cause) Create an exception with a cause and no additional information.SerializationException(String message) Create an exception without a cause.SerializationException(Throwable cause) Create an exception with a cause and no additional information.SerializationException(ConfigurationNode node, AnnotatedType expectedType, @Nullable String message, @Nullable Throwable cause) Create an exception with message and wrapped cause.SerializationException(ConfigurationNode node, AnnotatedType expectedType, String message) Create an exception with a message and unknown cause.SerializationException(ConfigurationNode node, AnnotatedType expectedType, Throwable cause) Create an exception with wrapped cause.SerializationException(ConfigurationNode node, Type expectedType, @Nullable String message, @Nullable Throwable cause) Create an exception with message and wrapped cause.SerializationException(ConfigurationNode node, Type expectedType, String message) Create an exception with a message and unknown cause.SerializationException(ConfigurationNode node, Type expectedType, Throwable cause) Create an exception with wrapped cause.SerializationException(NodePath path, AnnotatedType expectedType, String message) Create an exception with message and wrapped cause.SerializationException(NodePath path, Type expectedType, String message) Create an exception with message and wrapped cause.
- 
Method SummaryModifier and TypeMethodDescription@Nullable TypeGet the desired type associated with the failed object mapping operation.@Nullable StringGet a description of the location of this error, with path included.final voidinitType(AnnotatedType type) Initialize the expected type.voidInitialize the expected type.Methods inherited from class org.spongepowered.configurate.ConfigurateExceptioninitPath, path, rawMessage, wrapMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
serialVersionUID- See Also:
 
 
- 
- 
Constructor Details- 
SerializationExceptionpublic SerializationException()Create an exception with unknown message and cause.- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception without a cause.- Parameters:
- message- message with information about the exception
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception with a cause and no additional information.- Parameters:
- cause- wrapped causing throwable
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception without a cause.- Parameters:
- expectedType- declared type being processed
- message- message with information about the exception
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception without a cause.- Parameters:
- expectedType- declared type being processed
- message- message with information about the exception
- Since:
- 4.2.0
 
- 
SerializationExceptionCreate an exception with a cause and no additional information.- Parameters:
- expectedType- declared type being processed
- cause- wrapped causing throwable
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception with a cause and no additional information.- Parameters:
- expectedType- declared type being processed
- cause- wrapped causing throwable
- Since:
- 4.2.0
 
- 
SerializationExceptionCreate an exception with message and wrapped cause.- Parameters:
- expectedType- declared type being processed
- message- informational message
- cause- cause to be wrapped
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception with message and wrapped cause.- Parameters:
- expectedType- declared type being processed
- message- informational message
- cause- cause to be wrapped
- Since:
- 4.2.0
 
- 
SerializationExceptionCreate an exception with a message and unknown cause.- Parameters:
- node- node being processed
- message- informational message
- expectedType- declared type being processed
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception with a message and unknown cause.- Parameters:
- node- node being processed
- message- informational message
- expectedType- declared type being processed
- Since:
- 4.2.0
 
- 
SerializationExceptionCreate an exception with wrapped cause.- Parameters:
- node- node being processed
- expectedType- declared type being processed
- cause- cause to be wrapped
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception with wrapped cause.- Parameters:
- node- node being processed
- expectedType- declared type being processed
- cause- cause to be wrapped
- Since:
- 4.2.0
 
- 
SerializationExceptionpublic SerializationException(ConfigurationNode node, Type expectedType, @Nullable String message, @Nullable Throwable cause) Create an exception with message and wrapped cause.- Parameters:
- node- node being processed
- expectedType- declared type being processed
- message- informational message
- cause- cause to be wrapped
- Since:
- 4.0.0
 
- 
SerializationExceptionpublic SerializationException(ConfigurationNode node, AnnotatedType expectedType, @Nullable String message, @Nullable Throwable cause) Create an exception with message and wrapped cause.- Parameters:
- node- node being processed
- expectedType- declared type being processed
- message- informational message
- cause- cause to be wrapped
- Since:
- 4.2.0
 
- 
SerializationExceptionCreate an exception with message and wrapped cause.- Parameters:
- path- path to node being processed
- expectedType- declared type being processed
- message- informational message
- Since:
- 4.0.0
 
- 
SerializationExceptionCreate an exception with message and wrapped cause.- Parameters:
- path- path to node being processed
- expectedType- declared type being processed
- message- informational message
- Since:
- 4.2.0
 
 
- 
- 
Method Details- 
expectedTypeGet the desired type associated with the failed object mapping operation.- Returns:
- type
- Since:
- 4.0.0
 
- 
getMessageDescription copied from class:ConfigurateExceptionGet a description of the location of this error, with path included.- Overrides:
- getMessagein class- ConfigurateException
- Returns:
- message
 
- 
initTypeInitialize the expected type.If a type has already been set, it will not be overridden. - Parameters:
- type- expected type
- Since:
- 4.0.0
 
- 
initTypeInitialize the expected type.If a type has already been set, it will not be overridden. - Parameters:
- type- expected type
- Since:
- 4.2.0
 
 
-