X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f:/src/bindings/java/org/simgrid/msg/ProcessKilledError.java?ds=sidebyside diff --git a/src/bindings/java/org/simgrid/msg/ProcessKilledError.java b/src/bindings/java/org/simgrid/msg/ProcessKilledError.java index 41f4454bc5..5911aca8bc 100644 --- a/src/bindings/java/org/simgrid/msg/ProcessKilledError.java +++ b/src/bindings/java/org/simgrid/msg/ProcessKilledError.java @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2019. 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. */ @@ -6,7 +6,20 @@ package org.simgrid.msg; /** Used internally to interrupt the user code when the process gets killed. - * Don't catch it. + * + * \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 {