aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/nurbs/internals/NurbsException.java
blob: 5453807cd064f1bfe4cdbc59b8cca831bc7fdfb0 (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
/** Encapsulates functionality of the C GLU NURBS implementation's
    setjmp/longjmp wrappers. */

public class NurbsException extends RuntimeException {
  private int errorCode;
  
  public NurbsException(int code) {
    super();
    errorCode = code;
  }

  public NurbsException(String message, int code) {
    super(message);
    errorCode = code;
  }

  public NurbsException(String message, Throwable cause, int code) {
    super(message, cause);
    errorCode = code;
  }

  public NurbsException(Throwable cause, int code) {
    super(cause);
    errorCode = code;
  }

  public int errorCode() {
    return errorCode;
  }
}