X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/49e85177c669d793e84242983a1b1f430e47184e..2d1f6b9a46d52289c1b52de4f0a7698f0085711a:/src/bindings/java/org/simgrid/msg/ProcessKilledError.java diff --git a/src/bindings/java/org/simgrid/msg/ProcessKilledError.java b/src/bindings/java/org/simgrid/msg/ProcessKilledError.java index 023e5cfa2d..5911aca8bc 100644 --- a/src/bindings/java/org/simgrid/msg/ProcessKilledError.java +++ b/src/bindings/java/org/simgrid/msg/ProcessKilledError.java @@ -1,14 +1,25 @@ -/* Copyright (c) 2006-2014. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2006-2021. 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. */ package org.simgrid.msg; -/** This error class is only used to interrupt the java user code - * when the process gets killed by an external event. - * Don't catch it. +/** Used internally to interrupt the user code when the process gets killed. + * + * \rst + * You can catch it for cleanups or to debug, but DO NOT BLOCK IT, or your simulation will segfault! + * + * .. code-block:: java + * + * try { + * getHost().off(); + * } catch (ProcessKilledError e) { + * e.printStackTrace(); + * throw e; + * } + * + * \endrst */ public class ProcessKilledError extends Error {