Oracle Coherence for C++ API
Release 3.6.0.0

E15728-01

coherence/io/EOFException.hpp

00001 /*
00002 * EOFException.hpp
00003 *
00004 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_EOF_EXCEPTION_HPP
00017 #define COH_EOF_EXCEPTION_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/io/IOException.hpp"
00022 
00023 COH_OPEN_NAMESPACE2(coherence,io)
00024 
00025 
00026 /**
00027 * Signals that an end of file or stream has been reached unexpectedly during
00028 * input.
00029 *
00030 * @author jh  2007.12.30
00031 */
00032 class COH_EXPORT EOFException
00033     : public throwable_spec<EOFException,
00034         extends<IOException> >
00035     {
00036     friend class factory<EOFException>;
00037 
00038     // ----- constructors ---------------------------------------------------
00039 
00040     protected:
00041         /**
00042         * Create an EOFException.
00043         *
00044         * @param vsMsg   the detail message
00045         * @param vCause  the underlying cause of the exception
00046         *
00047         * @return a new EOFException
00048         */
00049         EOFException(String::View vsMsg = String::NULL_STRING,
00050                 Exception::View vCause = NULL);
00051     };
00052 
00053 COH_CLOSE_NAMESPACE2
00054 
00055 #endif // COH_EOF_EXCEPTION_HPP
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.