All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.exigen.ie.constrainer.TimeLimitException Maven / Gradle / Ivy

package com.exigen.ie.constrainer;

/**
 * 

Title: TimeLimitException

*

Description: This kind of exception are to be thrown by Constrainer * if the actual time of solution searching process exceeded the time limit. * The value for time limit could be set by calling Constrainer.setTimeLimit(int)

*/ public class TimeLimitException extends RuntimeException { private String _msg; private ChoicePointLabel _label = null; public TimeLimitException() { this("", null); } /** * Constructor for a TimeLimitException with a given description and label. */ public TimeLimitException (String s, ChoicePointLabel label) { super(s); _msg = s; _label = label; } /** * Sets the description of this TimeLimitException. */ void message(String s) { _msg = s; } /** * Returns the label. */ public ChoicePointLabel label() { return _label; } /** * Returns description. */ public String toString() { return "Failure: " + _msg; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy