Servertec
Foundation Classes
1.3.3 09/04/2005

stec.sfc.Win32
Class Win32Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by stec.sfc.Win32.Win32Exception
All Implemented Interfaces:
java.io.Serializable

public final class Win32Exception
extends java.lang.Exception

Used to create new Win32 exceptions. Normally thrown by SFC native methods.

Since:
1.0.0 01/07/2001
See Also:
Serialized Form

Constructor Summary
Win32Exception()
          Constructs a new Win32Exception object.
Win32Exception(int error_code)
          Constructs a new Win32Exception object with the specified error code.
Win32Exception(int error_code, java.lang.String message)
          Constructs a new Win32Exception object with the specified error code and message.
Win32Exception(java.lang.String message)
          Constructs a new Win32Exception object with the specified message.
Win32Exception(java.lang.Throwable ex)
          Constructs a new Win32Exception object for the specified Throwable object.
 
Method Summary
 int getErrorCode()
          Returns the error code of the Win32Exception.
 java.lang.Throwable getRootCause()
          Returns the error code of the Win32Exception.
 
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

Win32Exception

public Win32Exception()
Constructs a new Win32Exception object.


Win32Exception

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

Parameters:
error_code - the error code.

Win32Exception

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

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

Win32Exception

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

Parameters:
error_code - the error code.
message - the error message.
Since:
1.1.0 11/18/2001

Win32Exception

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

Parameters:
ex - the Throwable object.
Since:
1.1.0 11/18/2001
Method Detail

getErrorCode

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

Win32 error codes can be found at MSDN System Error Codes.

Returns:
the error code. -1 is none.

getRootCause

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

Returns:
the error code. null is none.
Since:
1.1.0 11/18/2001

Servertec
Foundation Classes
1.3.3 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.