diff options
author | Kenneth Russel <[email protected]> | 2004-12-20 20:04:27 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2004-12-20 20:04:27 +0000 |
commit | 167641d406619ba710e2d50005b6886d2874a251 (patch) | |
tree | d080e059fa1d034f63946ae68937dd3f97f6943c /src/net/java/games/jogl/impl/nurbs/internals/NurbsException.java | |
parent | 494740e563ead19828cc44a03230eb066bf84a02 (diff) |
Initial incomplete GLU NURBS port under net.java.games.jogl.impl.nurbs
and a small README about the procedures being used during the port
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@180 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl/nurbs/internals/NurbsException.java')
-rwxr-xr-x | src/net/java/games/jogl/impl/nurbs/internals/NurbsException.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/nurbs/internals/NurbsException.java b/src/net/java/games/jogl/impl/nurbs/internals/NurbsException.java new file mode 100755 index 000000000..5453807cd --- /dev/null +++ b/src/net/java/games/jogl/impl/nurbs/internals/NurbsException.java @@ -0,0 +1,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; + } +} |