com.veraxsystems.icmp.jni.exception
Class IcmpSystemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.veraxsystems.icmp.jni.exception.IcmpException
              extended by com.veraxsystems.icmp.jni.exception.IcmpSystemException
All Implemented Interfaces:
java.io.Serializable

public class IcmpSystemException
extends IcmpException

The exception generated during access to IcmpJniBridge DLL module. It stores low level error code (see WIN32 API) and message related to this code.

See Also:
Serialized Form

Constructor Summary
IcmpSystemException(int errorCodeVal, java.lang.String nativeErrorString)
          The exception constructor.
 
Method Summary
 int getErrorCode()
          Get error code that caused this exception.
 void setErrorCode(int code)
          Set system error code.
 
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

IcmpSystemException

public IcmpSystemException(int errorCodeVal,
                           java.lang.String nativeErrorString)
The exception constructor. As the addition to IcmpException the erroCode is handled.

Parameters:
errorCodeVal - low level error code
nativeErrorString - error string describing error code
Method Detail

getErrorCode

public final int getErrorCode()
Get error code that caused this exception.

Returns:
error code

setErrorCode

public final void setErrorCode(int code)
Set system error code.

Parameters:
code - error code