X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e0188e2a2598ce57a4d21a3d7eb5f303aecaf0dd..d4afba77ac2efab88c734bbee9d2c6c520fcf43e:/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 5f7e327a86..b9ebb49f34 100644 --- a/src/bindings/java/org/simgrid/msg/ProcessKilledError.java +++ b/src/bindings/java/org/simgrid/msg/ProcessKilledError.java @@ -1,16 +1,22 @@ -/* - * Copyright 2006-2012 The SimGrid team - * All right 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. - */ +/* Copyright (c) 2006-2019. 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. + * + * You can catch it for cleanups or to debug, but DO NOT BLOCK IT, or your simulation will segfault! + * + * + * try { + * getHost().off(); + * } catch (ProcessKilledError e) { + * e.printStackTrace(); + * throw e; + * } + * */ public class ProcessKilledError extends Error {