exception_object.Message Method

Returns the full text string that is generated based upon the exception_obj properties.

...exception_object.Message

Prerequisites

None

Parameters

None

Remarks

Given any exception_object, this method interprets the ErrorCode and any defined refinement information such as the RobotNum, Axis, or Qualifier properties as appropriate and returns the equivalent text string that is normally output to indicate this exception.

Examples

Dim exc1 As New Exception       ' Create new general exception
exc1.RobotError = True ' Indicate its a robot error
exc1.ErrorCode = -1012 ' *Joint out-of-range*
exc1.Axis = &HA ' Specify axes 2 and 4
Console.WriteLine(exc1.Message) ' *Joint out-of-range* Robot 1: 2 4

See Also

Exception Handling