WinIOException.WinIOException

Overview | Methods | This Package | All Packages

WinIOException.WinIOException

Creates a WinIOException object based on the last operating system error.

Syntax

public WinIOException()

public WinIOException( int errorCode )

public WinIOException( int errorCode, String s )

Parameters

errorcode

The error code number.

s

The text to be displayed when this error occurs.

Remarks

The first constructor calls the com.ms.dll.DllLib.getLastWin32Error method to get the last operating system error code and constructs an error message based on that error code. If you are using J/Direct to call a Windows API function, and the function reports an error, you can turn that error into a WinIOException using this constructor.

The second syntax calls the Utils.getSystemErrorMessage method to construct an error message based on the specified error code.