summaryrefslogtreecommitdiff
path: root/java/lang/IllegalMonitorStateException.java
blob: e4577e0e2adf56e67fe1626408178423da318263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package java.lang;

/**
 * Exceptions may be thrown by one part of a Java program and caught
 * by another in order to deal with exceptional conditions.  
 * If a thread attempts to wait on an object's monitor then
 * <code>IllegalMonitorStateException</code> can be thrown.  This
 * exception is also thrown to give a message to other threads also waiting
 * on an object's monitor without owning the monitor.
 *
 * @author Brian Jones
 */
public class IllegalMonitorStateException extends RuntimeException
{
  /**
   * Create an exception without a message.
   */
  public IllegalMonitorStateException()
    {
      super();
    }

  /**
   * Create an exception with a message.
   */
  public IllegalMonitorStateException(String s)
    {
      super(s);
    }
}