Package: GWindows.Errors

Dependencies

with System;

Description

Error Handling

Header

package GWindows.Errors is
 

Exceptions

Win32_Error
Raised when a Win32 API fails

Other Items:

procedure Error_Check (Result : in Integer);
Checks result for a Win32 failure code and if so raises Win32_Error

function Get_Last_Error return Integer;
Returns the last error thrown by a Win32 API call

function Get_Last_Error return GString;
Returns the last error as a string identified from the OS

function Error_To_String (Error_Number : in Integer) return GString;
Asks the operating system to identify the Error_Number

function To_String (Address : System.Address) return GString;
Converts and address to a string
end GWindows.Errors;