ITeye博客

NestedIOException

xiaowei2002 · 2014-11-12 09:24 · memcached · Web前端 · Markdown

/**

  • 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 Kevin Burton

  • @version 1.2 */ public class NestedIOException extends IOException {

    /**

    • Create a new NestedIOException 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 ); } }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。