Class SerializationException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      SerializationException()
      Create an exception with unknown message and cause.
      SerializationException​(java.lang.reflect.AnnotatedType expectedType, java.lang.String message)
      Create an exception without a cause.
      SerializationException​(java.lang.reflect.AnnotatedType expectedType, java.lang.String message, java.lang.Throwable cause)
      Create an exception with message and wrapped cause.
      SerializationException​(java.lang.reflect.AnnotatedType expectedType, java.lang.Throwable cause)
      Create an exception with a cause and no additional information.
      SerializationException​(java.lang.reflect.Type expectedType, java.lang.String message)
      Create an exception without a cause.
      SerializationException​(java.lang.reflect.Type expectedType, java.lang.String message, java.lang.Throwable cause)
      Create an exception with message and wrapped cause.
      SerializationException​(java.lang.reflect.Type expectedType, java.lang.Throwable cause)
      Create an exception with a cause and no additional information.
      SerializationException​(java.lang.String message)
      Create an exception without a cause.
      SerializationException​(java.lang.Throwable cause)
      Create an exception with a cause and no additional information.
      SerializationException​(ConfigurationNode node, java.lang.reflect.AnnotatedType expectedType, @Nullable java.lang.String message, @Nullable java.lang.Throwable cause)
      Create an exception with message and wrapped cause.
      SerializationException​(ConfigurationNode node, java.lang.reflect.AnnotatedType expectedType, java.lang.String message)
      Create an exception with a message and unknown cause.
      SerializationException​(ConfigurationNode node, java.lang.reflect.AnnotatedType expectedType, java.lang.Throwable cause)
      Create an exception with wrapped cause.
      SerializationException​(ConfigurationNode node, java.lang.reflect.Type expectedType, @Nullable java.lang.String message, @Nullable java.lang.Throwable cause)
      Create an exception with message and wrapped cause.
      SerializationException​(ConfigurationNode node, java.lang.reflect.Type expectedType, java.lang.String message)
      Create an exception with a message and unknown cause.
      SerializationException​(ConfigurationNode node, java.lang.reflect.Type expectedType, java.lang.Throwable cause)
      Create an exception with wrapped cause.
      SerializationException​(NodePath path, java.lang.reflect.AnnotatedType expectedType, java.lang.String message)
      Create an exception with message and wrapped cause.
      SerializationException​(NodePath path, java.lang.reflect.Type expectedType, java.lang.String message)
      Create an exception with message and wrapped cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.reflect.Type expectedType()
      Get the desired type associated with the failed object mapping operation.
      @Nullable java.lang.String getMessage()
      Get a description of the location of this error, with path included.
      void initType​(java.lang.reflect.AnnotatedType type)
      Initialize the expected type.
      void initType​(java.lang.reflect.Type type)
      Initialize the expected type.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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

      • SerializationException

        public SerializationException()
        Create an exception with unknown message and cause.
        Since:
        4.0.0
      • SerializationException

        public SerializationException​(java.lang.String message)
        Create an exception without a cause.
        Parameters:
        message - message with information about the exception
        Since:
        4.0.0
      • SerializationException

        public SerializationException​(java.lang.Throwable cause)
        Create an exception with a cause and no additional information.
        Parameters:
        cause - wrapped causing throwable
        Since:
        4.0.0
      • SerializationException

        public SerializationException​(java.lang.reflect.Type expectedType,
                                      java.lang.String message)
        Create an exception without a cause.
        Parameters:
        expectedType - declared type being processed
        message - message with information about the exception
        Since:
        4.0.0
      • SerializationException

        public SerializationException​(java.lang.reflect.AnnotatedType expectedType,
                                      java.lang.String message)
        Create an exception without a cause.
        Parameters:
        expectedType - declared type being processed
        message - message with information about the exception
        Since:
        4.2.0
      • SerializationException

        public SerializationException​(java.lang.reflect.Type expectedType,
                                      java.lang.Throwable cause)
        Create an exception with a cause and no additional information.
        Parameters:
        expectedType - declared type being processed
        cause - wrapped causing throwable
        Since:
        4.0.0
      • SerializationException

        public SerializationException​(java.lang.reflect.AnnotatedType expectedType,
                                      java.lang.Throwable cause)
        Create an exception with a cause and no additional information.
        Parameters:
        expectedType - declared type being processed
        cause - wrapped causing throwable
        Since:
        4.2.0
      • SerializationException

        public SerializationException​(java.lang.reflect.Type expectedType,
                                      java.lang.String message,
                                      java.lang.Throwable cause)
        Create 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
      • SerializationException

        public SerializationException​(java.lang.reflect.AnnotatedType expectedType,
                                      java.lang.String message,
                                      java.lang.Throwable cause)
        Create 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
      • SerializationException

        public SerializationException​(ConfigurationNode node,
                                      java.lang.reflect.Type expectedType,
                                      java.lang.String message)
        Create 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
      • SerializationException

        public SerializationException​(ConfigurationNode node,
                                      java.lang.reflect.AnnotatedType expectedType,
                                      java.lang.String message)
        Create 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
      • SerializationException

        public SerializationException​(ConfigurationNode node,
                                      java.lang.reflect.Type expectedType,
                                      java.lang.Throwable cause)
        Create an exception with wrapped cause.
        Parameters:
        node - node being processed
        expectedType - declared type being processed
        cause - cause to be wrapped
        Since:
        4.0.0
      • SerializationException

        public SerializationException​(ConfigurationNode node,
                                      java.lang.reflect.AnnotatedType expectedType,
                                      java.lang.Throwable cause)
        Create an exception with wrapped cause.
        Parameters:
        node - node being processed
        expectedType - declared type being processed
        cause - cause to be wrapped
        Since:
        4.2.0
      • SerializationException

        public SerializationException​(ConfigurationNode node,
                                      java.lang.reflect.Type expectedType,
                                      @Nullable java.lang.String message,
                                      @Nullable java.lang.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
      • SerializationException

        public SerializationException​(ConfigurationNode node,
                                      java.lang.reflect.AnnotatedType expectedType,
                                      @Nullable java.lang.String message,
                                      @Nullable java.lang.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
      • SerializationException

        public SerializationException​(NodePath path,
                                      java.lang.reflect.Type expectedType,
                                      java.lang.String message)
        Create 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
      • SerializationException

        public SerializationException​(NodePath path,
                                      java.lang.reflect.AnnotatedType expectedType,
                                      java.lang.String message)
        Create 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 Detail

      • expectedType

        public @Nullable java.lang.reflect.Type expectedType()
        Get the desired type associated with the failed object mapping operation.
        Returns:
        type
        Since:
        4.0.0
      • initType

        public void initType​(java.lang.reflect.Type type)
        Initialize the expected type.

        If a type has already been set, it will not be overridden.

        Parameters:
        type - expected type
        Since:
        4.0.0
      • initType

        public final void initType​(java.lang.reflect.AnnotatedType type)
        Initialize the expected type.

        If a type has already been set, it will not be overridden.

        Parameters:
        type - expected type
        Since:
        4.2.0