Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.4.0)

E90870-01

coherence/net/messaging/ConnectionException.hpp

00001 /*
00002 * ConnectionException.hpp
00003 *
00004 * Copyright (c) 2000, 2019, 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_CONNECTION_EXCEPTION_HPP
00017 #define COH_CONNECTION_EXCEPTION_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/io/pof/PortableException.hpp"
00022 
00023 COH_OPEN_NAMESPACE3(coherence,net,messaging)
00024 
00025 using coherence::io::pof::PortableException;
00026 
00027 /**
00028 * Signals that an underlying communication channel used by a Connection may
00029 * have been closed, severed, or become unusable.
00030 *
00031 * After this exception is thrown, any attempt to use the Connection (or any
00032 * Channel created by the Connection) may result in an exception.
00033 *
00034 * @author jh  2007.12.19
00035 */
00036 class COH_EXPORT ConnectionException
00037     : public throwable_spec<ConnectionException,
00038         extends<PortableException> >
00039     {
00040     friend class factory<ConnectionException>;
00041 
00042     // ----- constructors ---------------------------------------------------
00043 
00044     protected:
00045         /**
00046         * Create a ConnectionException.
00047         *
00048         * @param vsMsg        the detail message
00049         * @param vCause       the underlying cause of the exception
00050         * @param vConnection  the connection where the exception occurred
00051         *
00052         * @return a new ConnectionException
00053         */
00054         ConnectionException(String::View vsMsg = String::null_string,
00055                 Exception::View vCause = NULL,
00056                 Object::View vConnection = NULL);
00057 
00058     protected:
00059         /**
00060         * Blocked copy constructor.
00061         */
00062         ConnectionException(const ConnectionException&);
00063     };
00064 
00065 COH_CLOSE_NAMESPACE3
00066 
00067 #endif // COH_CONNECTION_EXCEPTION_HPP
Copyright © 2000, 2019, Oracle and/or its affiliates. All rights reserved.