*/
#include <exception>
-#include <simgrid/exception.hpp>
#include <stdexcept>
#include <xbt/exception.hpp>
namespace simgrid {
/** Ancestor class of all SimGrid exception */
-class exception : public std::runtime_error {
+class Exception : public std::runtime_error {
public:
- exception() : std::runtime_error("") {}
- exception(const char* message) : std::runtime_error(message) {}
+ Exception() : std::runtime_error("") {}
+ Exception(const char* message) : std::runtime_error(message) {}
};
/** Exception raised when a timeout elapsed */
-class timeout_error : public simgrid::exception {
+class timeout_error : public simgrid::Exception {
};
/** Exception raised when an host fails */
-class host_failure : public simgrid::exception {
+class host_failure : public simgrid::Exception {
};
/** Exception raised when a communication fails because of the network */
-class network_failure : public simgrid::exception {
+class network_failure : public simgrid::Exception {
};
/** Exception raised when something got canceled before completion */
-class canceled_error : public simgrid::exception {
+class canceled_error : public simgrid::Exception {
};
} // namespace simgrid
*
* @ingroup XBT_ex_c
*/
-class XBT_PUBLIC xbt_ex : public simgrid::exception, public simgrid::xbt::ContextedException {
+class XBT_PUBLIC xbt_ex : public simgrid::Exception, public simgrid::xbt::ContextedException {
public:
- xbt_ex() : simgrid::exception() {}
+ xbt_ex() : simgrid::Exception() {}
/**
*
* @param message Exception message
*/
xbt_ex(simgrid::xbt::ThrowPoint throwpoint, const char* message)
- : simgrid::exception(message), simgrid::xbt::ContextedException(throwpoint, simgrid::xbt::backtrace())
+ : simgrid::Exception(message), simgrid::xbt::ContextedException(throwpoint, simgrid::xbt::backtrace())
{
}
#include <simgrid/s4u/NetZone.hpp>
#include <simgrid/s4u/Storage.hpp>
-#include <simgrid/exception.hpp>
+#include <simgrid/Exception.hpp>
#endif /* SIMGRID_S4U_S4U_H */
#include "JavaContext.hpp"
#include "jxbt_utilities.hpp"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/simix/smx_private.hpp"
#include <functional>
#include <clocale>
#include <string>
+#include "simgrid/Exception.hpp"
#include "simgrid/msg.h"
#include "simgrid/plugins/energy.h"
#include "simgrid/plugins/file_system.h"
#include "JavaContext.hpp"
-#include "simgrid/exception.hpp"
/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */
#ifndef JNIEXPORT
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
-
#include "jmsg_process.h"
#include "JavaContext.hpp"
#include "jmsg.hpp"
#include "jmsg_host.h"
#include "jxbt_utilities.hpp"
+#include "simgrid/Exception.hpp"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(java);
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
-
-#include "jmsg.hpp"
#include "jmsg_synchro.h"
+#include "jmsg.hpp"
#include "jxbt_utilities.hpp"
+#include "simgrid/Exception.hpp"
#include "xbt/synchro.h"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(java);
#ifndef MSG_JSYNCHRO_H
#define MSG_JSYNCHRO_H
+#include "xbt/base.h"
#include <jni.h>
SG_BEGIN_DECL()
#include "jmsg_vm.h"
#include "jmsg_host.h"
#include "jxbt_utilities.hpp"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/plugins/live_migration.h"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/kernel/activity/ConditionVariableImpl.hpp"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/kernel/activity/MutexImpl.hpp"
#include "src/kernel/activity/SynchroRaw.hpp"
#include "src/simix/smx_synchro_private.hpp"
#include "src/kernel/activity/SleepImpl.hpp"
#include "src/kernel/context/Context.hpp"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/simix/ActorImpl.hpp"
#include "src/simix/popping_private.hpp"
#include "src/simix/smx_private.hpp"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/s4u/Mailbox.hpp"
#include "src/instr/instr_private.hpp"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "msg_private.hpp"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/simix/smx_private.hpp"
#include "src/simix/smx_synchro_private.hpp"
#include "xbt/synchro.h"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/plugins/vm/VmLiveMigration.hpp"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/instr/instr_private.hpp"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
#include "src/plugins/vm/VmHostExt.hpp"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "mc/mc.h"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "smx_private.hpp"
#include "src/kernel/activity/CommImpl.hpp"
#include "src/kernel/activity/ExecImpl.hpp"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include "simgrid/Exception.hpp"
#include "simgrid/s4u/Host.hpp"
#include "smx_private.hpp"
#include "src/surf/xml/platf_private.hpp" // FIXME: KILLME. There must be a better way than mimicking XML here
#include <simgrid/engine.h>
-#include <simgrid/exception.hpp>
#include <string>
#include <vector>
#include "src/include/surf/surf.hpp"
#include "xbt/xbt_os_time.h"
+#include <simgrid/Exception.hpp>
#include <simgrid/engine.h>
-#include <simgrid/exception.hpp>
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_environment, simix, "Logging specific to SIMIX (environment)");
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "mc/mc.h"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "smx_private.hpp"
#include "src/kernel/activity/CommImpl.hpp"
#include "src/kernel/activity/ExecImpl.hpp"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "mc/mc.h"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/s4u/Host.hpp"
#include "simgrid/s4u/Io.hpp"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "mc/mc.h"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/kernel/activity/MailboxImpl.hpp"
#include "src/mc/mc_replay.hpp"
#include "src/simix/smx_private.hpp"
-/* Copyright (c) 2007-2018. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "smpi_info.hpp"
-#include "simgrid/exception.hpp"
-#include "xbt/sysdep.h"
+#include "simgrid/Exception.hpp"
-namespace simgrid{
-namespace smpi{
+namespace simgrid {
+namespace smpi {
Info::Info(Info* info) : map_(info->map_)
{
#include "mc/mc.h"
#include "private.hpp"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/s4u/Exec.hpp"
#include "smpi_comm.hpp"
#include "smpi_datatype.hpp"
#include <algorithm>
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_request, smpi, "Logging specific to SMPI (reques)");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_request, smpi, "Logging specific to SMPI (request)");
static simgrid::config::Flag<double> smpi_iprobe_sleep(
"smpi/iprobe", "Minimum time to inject inside a call to MPI_Iprobe", 1e-4);
#include <typeinfo>
#include <vector>
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/sg_config.hpp"
#include "xbt/dynar.h"
#include "xbt/log.h"
#include <string>
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "xbt.h"
#include "xbt/ex.h"
#include <string>
#include <vector>
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include <xbt/cunit.h>
#include <xbt/string.hpp>
#include "xbt/dict.h"
#include "dict_private.h"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/xbt_modinter.h"
#include "xbt/ex.h"
#include "xbt/log.h"
}
#ifdef SIMGRID_TEST
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "src/internal_config.h"
#include "xbt.h"
#include "xbt/ex.h"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "xbt/dynar.h"
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "xbt/ex.h"
#include "xbt/log.h"
#include "xbt/misc.h"
#include <memory>
#include <mutex>
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include <xbt/backtrace.hpp>
#include <xbt/config.hpp>
#include <xbt/log.h>
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/simix.h" /* used implementation */
#include "src/kernel/activity/ConditionVariableImpl.hpp"
#include "xbt/synchro.h"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "xbt/log.h"
#include "xbt/replay.hpp"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "xbt/misc.h"
#include "xbt/str.h" /* headers of these functions */
-#include "xbt/sysdep.h"
/** @brief Splits a string into a dynar of strings
*
}
#ifdef SIMGRID_TEST
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "xbt/str.h"
XBT_TEST_SUITE("xbt_str", "String Handling");
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/msg.h"
#include <stdio.h> /* sscanf */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/msg.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/exception.hpp"
+#include "simgrid/Exception.hpp"
#include "simgrid/msg.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "xbt/mmalloc.h"
+#include "simgrid/Exception.hpp"
#include "xbt.h"
+#include "xbt/mmalloc.h"
+
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <sys/stat.h>
#include <unistd.h>
-#include <simgrid/exception.hpp>
-
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"this test");
#define BUFFSIZE 204800
include/simgrid/actor.h
include/simgrid/barrier.h
include/simgrid/engine.h
- include/simgrid/exception.hpp
+ include/simgrid/Exception.hpp
include/simgrid/chrono.hpp
include/simgrid/plugins/dvfs.h
include/simgrid/plugins/energy.h