Tao.Sdl SDK Documentation

SdlNet.SDLNet_GetError Method 

Get the current error string

[Visual Basic]
Public Shared Function SDLNet_GetError() As String
[C#]
public static string SDLNet_GetError();

Return Value

A string containing a human readable version or the reason for the last error that occured.

Remarks

This is the same as SDL_GetError, which returns the last error set as a string which you may use to tell the user what happened when an error status has been returned from an SDLNet_function.

Binds to C-function call in SDL_error.h:

#define SDLNet_GetError    SDL_GetError

Example

            printf("Oh My Goodness, an error : %s", SDLNet_GetError());
            

See Also

SdlNet Class | Tao.Sdl Namespace