summaryrefslogtreecommitdiff
path: root/java/lang/CloneNotSupportedException.java
blob: 5489b116c92ce95dbb1b10e61bcfdb7b2aeb1624 (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.  
 * Thrown to indicate an object should not or could not be cloned.  
 * For example <code>CloneNotSupportedException</code> is thrown by
 * the <code>clone</code> method of <code>Object</code> to indicate 
 * that object does not implement the <code>Cloneable</code> interface.
 *
 * @author Brian Jones
 */
public class CloneNotSupportedException extends Exception
{
  /**
   * Create an exception without a message.
   */
  public CloneNotSupportedException()
    {
      super();
    }

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