1 package org.gnu.glpk; 2 3 /** 4 * Exception thrown, when the GLPK native library call fails. 5 * <p>If an error occurs GLPK will release all internal memory. Hence all 6 * object references to the library will be invalid. 7 * <p>To reenable listening to terminal output call 8 * <pre> 9 * GLPK.glp_term_hook(null, null); 10 * </pre> 11 */ 12 public class GlpkException extends RuntimeException { 13 14 /** 15 * Constructs a new GLPK exception. 16 */ 17 public GlpkException() { 18 super(); 19 } 20 21 /** 22 * Constructs a new GLPK exception. 23 * @param message detail message 24 */ 25 public GlpkException(final String message) { 26 super(message); 27 } 28 } 29