00001 /* 00002 * ConcurrentModificationException.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_CONCURRENT_MODIFICATION_EXCEPTION_HPP 00017 #define COH_CONCURRENT_MODIFICATION_EXCEPTION_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 COH_OPEN_NAMESPACE2(coherence,util) 00022 00023 00024 /** 00025 * Thrown to indicate that a non-permissible concurrent modification of an 00026 * object has been detected. 00027 */ 00028 class COH_EXPORT ConcurrentModificationException 00029 : public throwable_spec<ConcurrentModificationException, 00030 extends<RuntimeException> > 00031 { 00032 friend class factory<ConcurrentModificationException>; 00033 00034 // ----- constructors --------------------------------------------------- 00035 00036 protected: 00037 /** 00038 * Create an ConcurrentModificationException. 00039 * 00040 * @param vsMsg the detail message 00041 * @param vCause the underlying cause of the exception 00042 * 00043 * @return a new ConcurrentModificationException 00044 */ 00045 ConcurrentModificationException(String::View vsMsg = String::null_string, 00046 Exception::View vCause = NULL); 00047 }; 00048 00049 COH_CLOSE_NAMESPACE2 00050 00051 #endif // COH_CONCURRENT_MODIFICATION_EXCEPTION_HPP