Player APIs (BrightScript & Ja...
...
Object Reference
Hashing and Storage Objects

roDiskErrorEvent

4min
this object is returned while waiting on a message port that is connected to an rodiskmonitor object ifuserdata 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 ifdiskerrorevent getdiskerror() as object returns an roassociativearray containing the following parameters key type description source rostring the error type time rodatetime the time at which the error occurred (with millisecond accuracy) device rostring the internal name for the device generating the error error rostring a description of the error (e g "timeout") param 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"] this example uses an implicit conversion of rodatetime you could also use rodatetime getstring()