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

cc.shacocloud.mirage.web.exception.HttpMessageConversionException Maven / Gradle / Ivy

package cc.shacocloud.mirage.web.exception;

import cc.shacocloud.mirage.web.http.HttpMessageConverter;
import org.springframework.core.NestedRuntimeException;
import org.jetbrains.annotations.Nullable;

/**
 * 当转换尝试失败时,由{@link HttpMessageConverter}实现抛出。
 */
@SuppressWarnings("serial")
public class HttpMessageConversionException extends NestedRuntimeException {

    /**
     * 创建一个新的{@link HttpMessageConversionException}
     *
     * @param msg 详细的消息
     */
    public HttpMessageConversionException(String msg) {
        super(msg);
    }

    /**
     * 创建一个新的{@link HttpMessageConversionException}
     *
     * @param msg   详细的消息
     * @param cause 根本原因(如果有的话)
     */
    public HttpMessageConversionException(String msg, @Nullable Throwable cause) {
        super(msg, cause);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy