summaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/xlib/XException.java
blob: 32adfc14697a5f00883faddf33284ffa351ed011 (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
/* Copyright (C) 2000  Free Software Foundation

   This file is part of libgcj.

This software is copyrighted work licensed under the terms of the
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
details.  */

package gnu.gcj.xlib;

/**
 * Runtime exception that occurred during an Xlib operation. 
 *
 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
 */
public class XException extends RuntimeException
{  
  public XException() {}
  public XException(String msg) { super(msg); }
  
  public XException(Display display, int status)
  {
    super(toString(display, status));
  }
  
  static native String toString(Display display, int status);
}