Servertec
Jenie
1.0.1 09/04/2005

stec.jenie
Class NativeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by stec.jenie.NativeException
All Implemented Interfaces:
java.io.Serializable

public final class NativeException
extends java.lang.Exception

Used to create new Jenie native exceptions. Normally thrown by Jenie native methods.

Since:
1.0.0 12/05/2004
See Also:
Serialized Form

Constructor Summary
NativeException()
          Constructs a new NativeException object.
NativeException(int error_code)
          Constructs a new NativeException object with the specified native error code.
NativeException(int error_code, java.lang.String message)
          Constructs a new NativeException object with the specified native error code and message.
NativeException(java.lang.String message)
          Constructs a new NativeException object with the specified message.
NativeException(java.lang.Throwable ex)
          Constructs a new NativeException object for the specified Throwable object.
 
Method Summary
 int getErrorCode()
          Returns the native error code of the NativeException.
 java.lang.Throwable getRootCause()
          Returns the native error code of the NativeException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NativeException

public NativeException()
Constructs a new NativeException object.


NativeException

public NativeException(int error_code)
Constructs a new NativeException object with the specified native error code.

Parameters:
error_code - the native error code.

NativeException

public NativeException(int error_code,
                       java.lang.String message)
Constructs a new NativeException object with the specified native error code and message.

Parameters:
error_code - the native error code.
message - the error message.

NativeException

public NativeException(java.lang.String message)
Constructs a new NativeException object with the specified message.

Parameters:
error_code - the native error code.
message - the error message.

NativeException

public NativeException(java.lang.Throwable ex)
Constructs a new NativeException object for the specified Throwable object.

Parameters:
ex - the Throwable object.
Method Detail

getErrorCode

public final int getErrorCode()
Returns the native error code of the NativeException.

Returns:
the native error code. -1 is none.

getRootCause

public final java.lang.Throwable getRootCause()
Returns the native error code of the NativeException.

Returns:
the native error code. null is none.

Servertec
Jenie
1.0.1 09/04/2005

Copyright © 2004-2005 Servertec. All rights reserved.