Module: IXMLDOMParseError

Includes:
WIN32OLE::VARIANT
Defined in:
sample/xml.rb

Overview

structure for reporting parser errors

Constant Summary

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs



4552
4553
4554
# File 'sample/xml.rb', line 4552

def lastargs
  @lastargs
end

Instance Method Details

#errorCodeObject

I4 errorCode the error code



4556
4557
4558
4559
4560
# File 'sample/xml.rb', line 4556

def errorCode()
  ret = _getproperty(0, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#fileposObject

I4 filepos the absolute file position in the XML document containing the error



4604
4605
4606
4607
4608
# File 'sample/xml.rb', line 4604

def filepos()
  ret = _getproperty(184, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#lineObject

I4 line the line number in the XML document where the error occurred



4588
4589
4590
4591
4592
# File 'sample/xml.rb', line 4588

def line()
  ret = _getproperty(182, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#lineposObject

I4 linepos the character position in the line containing the error



4596
4597
4598
4599
4600
# File 'sample/xml.rb', line 4596

def linepos()
  ret = _getproperty(183, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#reasonObject

BSTR reason the cause of the error



4572
4573
4574
4575
4576
# File 'sample/xml.rb', line 4572

def reason()
  ret = _getproperty(180, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#srcTextObject

BSTR srcText the data where the error occurred



4580
4581
4582
4583
4584
# File 'sample/xml.rb', line 4580

def srcText()
  ret = _getproperty(181, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#urlObject

BSTR url the URL of the XML document containing the error



4564
4565
4566
4567
4568
# File 'sample/xml.rb', line 4564

def url()
  ret = _getproperty(179, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end