`

NestedIOException

 
阅读更多
/**
* Copyright (c) 2008 Greg Whalin
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the BSD license
*
* This library is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE.
*
* You should have received a copy of the BSD License along with this
* library.
*
* @author Kevin A. Burton <burton@peerfear.org>
*/
package com.yulong.memcached;

import java.io.*;

/**
* Bridge class to provide nested Exceptions with IOException which has
* constructors that don't take Throwables.
*
* @author <a href="mailto:burton@rojo.com">Kevin Burton</a>
* @version 1.2
*/
public class NestedIOException extends IOException {

    /**
     * Create a new <code>NestedIOException</code> instance.
     * @param cause object of type throwable
     */
    public NestedIOException( Throwable cause ) {
        super( cause.getMessage() );
        super.initCause( cause );
    }

    public NestedIOException( String message, Throwable cause ) {
        super( message );
        initCause( cause );
    }
}
分享到:
评论

相关推荐

    P01_SpringPrimefaces:参见 readme.md - Primefaces + Spring + Hibernate 集成示例

    Primefaces + Spring + Hibernate 集成示例 feito a partir de: tá com pau:GRAVE:上下文初始化失败 org.springframework.beans.factory... 嵌套异常是 org.springframework.core.NestedIOException: ASM ClassRea

    基于springboot+mybatis实现的外卖订餐系统源码+项目说明(毕设).zip

    nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\GUSHI\IdeaProjects\springboot2\target\classes\mapping\UserRepository.xml]'; nested...

    asm5.0.jar

    nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis- config.xml]; nested exception is org.apache.ibatis.builder....

    记一次Ibatis的意外发生.docx

    例如,在配置SqlMapClient时,可能会出现Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: classpath resource [sql-map-config.xml]; nested exception is ...

    java调用memcached

    `NestedIOException`可能是对Java标准异常`IOException`的一个封装,用于在处理多个可能抛出IO异常的操作时,能够更清晰地表示异常的来源和层次。 最后,`LineInputStream`可能是一个用于读取以换行符分隔的行的...

    SPRING API 2.0.CHM

    NestedIOException NestedPathTag NestedRuntimeException NestedServletException NestedTransactionNotSupportedException NoRollbackRuleAttribute NoSuchBeanDefinitionException NoSuchMessageException...

    使用XSD校验Mybatis的SqlMapper配置文件的方法(1)

    如果验证失败,解析器通常会抛出异常,这些异常应该被捕获并转换为Spring的`NestedIOException`,以便于Spring容器处理。 总的来说,通过覆盖和扩展SqlSessionFactoryBean,我们可以实现对SqlMapper配置文件的XSD...

    MyBatis启动时控制台无限输出日志的原因及解决办法

    具体来说,异常信息中往往包含了异常类型和详细描述,例如org.springframework.core.NestedIOException或org.apache.ibatis.builder.BuilderException,这些异常信息指向了错误的具体原因和位置。在异常信息中,还会...

Global site tag (gtag.js) - Google Analytics