Color scheme: Light
You are here: start » en » Documentation » Microsoft Access development tools » WKL Office JSON » WKL Office JSON API reference » JParseError

JParseError

JParseError class

Signature

Dim myJParseError As JParseError

Summary

Details of the last failed load of a document.

Parameters

None

Remarks

Not created directly; returned by other members of the library.

MemberKindSummary
`ErrorCode`PropertyReturns the error number of the last load.
`Reason`PropertyReturns the description of the error.
`Line`PropertyReturns the line of the error.
`LinePos`PropertyReturns the column of the error.
`FilePos`PropertyReturns the position of the error in the whole text.
`SrcText`PropertyReturns the text of the line with the error.

Code example

None

Inheritance

None

ErrorCode property

Signature

Property Get ErrorCode() As Long

Summary

Returns the error number of the last load.

Parameters

None

Property value: Long – 0 when the last load succeeded; otherwise jeParseError or jeFileError (see `JErrorCode`).

Remarks

Default member: it can be left out, as in myJParseError(...) for myJParseError.ErrorCode(...). Read-only.

Code example

None

Inheritance

Declared by JParseError.

Reason property

Signature

Property Get Reason() As String

Summary

Returns the description of the error.

Parameters

None

Property value: String – A message naming the problem, such as a missing comma or a comment in the text, in the language of the messages (see the overview, section Errors).

Remarks

Read-only.

Code example

None

Inheritance

Declared by JParseError.

Line property

Signature

Property Get Line() As Long

Summary

Returns the line of the error.

Parameters

None

Property value: Long – The 1-based line number; 0 when ErrorCode is jeFileError. Lines end at LF.

Remarks

Read-only.

Code example

None

Inheritance

Declared by JParseError.

LinePos property

Signature

Property Get LinePos() As Long

Summary

Returns the column of the error.

Parameters

None

Property value: Long – The 1-based column in the line, counted in UTF-16 code units (a character above U+FFFF counts 2); 0 when ErrorCode is jeFileError.

Remarks

Read-only.

Code example

None

Inheritance

Declared by JParseError.

FilePos property

Signature

Property Get FilePos() As Long

Summary

Returns the position of the error in the whole text.

Parameters

None

Property value: Long – The 0-based character position; 0 when ErrorCode is jeFileError.

Remarks

Read-only.

Code example

None

Inheritance

Declared by JParseError.

SrcText property

Signature

Property Get SrcText() As String

Summary

Returns the text of the line with the error.

Parameters

None

Property value: String – The source line, for showing the error in context.

Remarks

Read-only.

Code example

None

Inheritance

Declared by JParseError.

en/wiki/msaccess/json/api-reference/jparseerror.txt · Last modified: by Wolfgang van der Stille