(read only)

This property returns the description (string) of the latest exception found after a command is executed.


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');



DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Compile a model        

DSSText.Command = 'Compile C:\myPath\myModel.dss';

DSSError = DSSObject.Error;

% gets the explanation of the latest error

myErrorDesc = DSSError.Description;

% gets the code of the latest error

myError = DSSError.Number;