summaryrefslogtreecommitdiff
path: root/java/JACE/ASX/TimeoutException.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/JACE/ASX/TimeoutException.java')
-rw-r--r--java/JACE/ASX/TimeoutException.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/java/JACE/ASX/TimeoutException.java b/java/JACE/ASX/TimeoutException.java
new file mode 100644
index 00000000000..d55cc4fe999
--- /dev/null
+++ b/java/JACE/ASX/TimeoutException.java
@@ -0,0 +1,37 @@
+/*************************************************
+ *
+ * = PACKAGE
+ * JACE.ASX
+ *
+ * = FILENAME
+ * TimeoutException.java
+ *
+ *@author Prashant Jain and Doug Schmidt
+ *
+ *************************************************/
+package JACE.ASX;
+
+/**
+ * Thrown when a timer has expired.
+ */
+public class TimeoutException extends Exception
+{
+ /**
+ * Default Constructor.
+ */
+ public TimeoutException ()
+ {
+ super ("Timed Out");
+ }
+
+ /**
+ * Constructor.
+ *@param timeout The timeout value which expired.
+ *@param desc Textual description of the exception
+ */
+ public TimeoutException (TimeValue timeout, String desc)
+ {
+ super ("Timed Out in " + timeout + ": " + desc);
+ }
+
+}