Rodiskerrorevent – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 144

Advertising
background image

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

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"]

Note: This example uses an implicit conversion of roDateTime. You could also use roDateTime.GetString().

Advertising