All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chavaillaz.client.common.exception.SerializationException Maven / Gradle / Ivy

Go to download

Library for the creation of asynchronous clients supporting multiple HTTP clients

There is a newer version: 2.1.3
Show newest version
package com.chavaillaz.client.common.exception;

/**
 * Exception in case the body to be sent by the client cannot be serialized.
 */
public class SerializationException extends ClientException {

    /**
     * Creates a new serialization exception.
     *
     * @param object    The content to serialize
     * @param exception The exception thrown by Jackson
     */
    public SerializationException(Object object, Throwable exception) {
        super("Unable to serialize type " + object.getClass().getSimpleName() + " from " + object, exception);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy