
136
roDiskErrorEvent
This object is returned while waiting on a message port that is connected to an roDiskMonitor object.
Interfaces: ifUserData, ifDiskErrorEvent
The ifUserData interface provides the following:
• SetUserData(user_data As Object): Sets the user data that will be returned when events are raised.
• GetUserData() As Object: Returns the user data that has previously been set via SetUserData(). It will
return Invalid if no data has been set.
The ifDiskErrorEvent interface provides the following:
• GetDiskError() As Object: Returns an roAssociativeArray that contains the following:
Key Type Description
roString
The error type
roDateTime
The time at which the error occurred (with millisecond accuracy)
roString
The internal name for the device generating the error
roString
A description of the error (e.g."Timeout")
roString
The error parameter (use depends on type of error; e.g. the sector number)
Example:
aa = msgp.GetDiskError()
report = "Time: " + aa["Time"] + "Error: " + aa["source"] + " " + aa["error"] + " " +
aa["device"] + " " + aa["param"]
Note: This example uses an implicit conversion of roDateTime. You could also use roDateTime.GetString().
Comentarios a estos manuales