#5 OAI Harvester Errors need improvement

All Harvesters
open
nobody
None
2
2014-11-15
2002-12-11
No

Tom,

Attached is what I believe we can do to make the
current error messages
clearer and more concise.

I collected all error messages we currently have in
'OAIMainForm.frm', and
somehow classified them into some groups. First, the
"oaiErrMsg" is what we
put into the failureReason field of the OAIHistory
table. "oaiErrCode" is
our own error code. I think if we want to document all
error messages in
detail thereafter, we can use oaiErrCode as our own
error message index in
the document. "oaiErrSuppCode" and "oaiErrSuppMsg" are
supplemental error
code and message further explaining the error if
necessary. "oaiCounters"
are those counters we currently appended to the
failureReason.

I think we might want to make oaiErrCode,
oaiErrSuppCode, oaiErrSuppMsg,
oaiCounters, and also Warning message another table. We
can use "historyID"
of OAIHistory as a foreign key of that table. Hence,
"failureReason" should
be more human readable and if anyone want to get
further information about
that particular error, the newly created table can be
queried.

These are what I am thinking of right now. We can talk
about this tomorrow
morning to see if there is anything to be taken into
account or whether I
should implement it or not.

Ying-ping

OAIMainForm.frm:1341: WriteHistory stsSuccess, "Success"
oaiErrMsg Success
oaiErrCode 0
oaiErrSuppCode 0
oaiErrSuppMsg N/A
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:442: WriteHistory stsFailed, "Failed to
initialize the OAIRepository: " & errdes
oaiErrMsg Failed to initialize the repository
oaiErrCode 101
oaiErrSuppCode Err.Number
oaiErrSuppMsg Err.Description
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:459: WriteHistory stsFailed, "Failed to
ListIdentifiers: " & errdes
oaiErrMsg Failed to list the identifiers
oaiErrCode 102
oaiErrSuppCode Err.Number
oaiErrSuppMsg Err.Description
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:471: WriteHistory stsFailed, "Failed to
ListRecords: " & errdes
oaiErrMsg Failed to list the records
oaiErrCode 103
oaiErrSuppCode Err.Number
oaiErrSuppMsg Err.Description
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:494: WriteHistory stsFailed, "Failed to
MoveNext: " & errdes
oaiErrMsg Failed to browse the next record
oaiErrCode 104
oaiErrSuppCode Err.Number
oaiErrSuppMsg Err.Description
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:569: WriteHistory stsFailed, "The '" &
hInfo.filterFile & "' could not be loaded."
oaiErrMsg 'hInfo.filterFile' could not be loaded
oaiErrCode 201
oaiErrSuppCode 0
oaiErrSuppMsg N/A
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:723: WriteHistory stsFailed, "The '" &
hInfo.normalizeFile & "' could not be loaded."
oaiErrMsg 'hInfo.normalizeFile' could not be loaded
oaiErrCode 202
oaiErrSuppCode 0
oaiErrSuppMsg N/A
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:573: WriteHistory stsFailed, "The '" &
hInfo.filterFile & "' is not valid. Reason: " &
xmlFilter.parseError.Reason
OAIMainForm.frm:820: WriteHistory stsFailed, "The '" &
hInfo.filterFile & "' is not valid. Reason: " &
xmlFilter.parseError.Reason
oaiErrMsg 'hInfo.filterFile' is invalid
oaiErrCode 211
oaiErrSuppCode <DOM_OBJ>.parseError.errorCode
oaiErrSuppMsg <DOM_OBJ>.parseError.Reason
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:727: WriteHistory stsFailed, "The '" &
hInfo.normalizeFile & "' is not valid. Reason: " &
xmlNormalize.parseError.Reason
OAIMainForm.frm:849: WriteHistory stsFailed, "The '" &
hInfo.normalizeFile & "' is not valid. Reason: " &
xmlFilter.parseError.Reason
oaiErrMsg 'hInfo.normalizeFile' is invalid
oaiErrCode 212
oaiErrSuppCode <DOM_OBJ>.parseError.errorCode
oaiErrSuppMsg <DOM_OBJ>.parseError.Reason
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:913: WriteHistory stsFailed, "The
'xslNormalize' is not valid. Reason: " &
xslNormalize.parseError.Reason
oaiErrMsg 'xslNormalize' is invalid
oaiErrCode 213
oaiErrSuppCode <DOM_OBJ>.parseError.errorCode
oaiErrSuppMsg <DOM_OBJ>.parseError.Reason
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:955: WriteHistory stsFailed, "The
'Normalized XML' is not valid. Reason: " &
newxml.parseError.Reason
oaiErrMsg 'Normalized XML' is invalid
oaiErrCode 214
oaiErrSuppCode <DOM_OBJ>.parseError.errorCode
oaiErrSuppMsg <DOM_OBJ>.parseError.Reason
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:1012: WriteHistory stsFailed,
"Terminated via DDE Command"
oaiErrMsg Terminated via DDE Command
oaiErrCode 301
oaiErrSuppCode 0
oaiErrSuppMsg N/A
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:1023: WriteHistory stsFailed, "Form was
prematurely unloaded. UnloadMode: " & UnloadMode
oaiErrMsg Form was prematurely unloaded
oaiErrCode 401
oaiErrSuppCode UnloadMode
oaiErrSuppMsg N/A
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:1249: WriteHistory stsFailed, "VB
Error: " & errdes
OAIMainForm.frm:1307: WriteHistory stsFailed, "Unable
to open database, VB Error: " & errdes
oaiErrMsg VB Error: Err.Number Err.Description
oaiErrCode 501
oaiErrSuppCode 0
oaiErrSuppMsg N/A
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:1245: WriteHistory stsFailed, "Error:
SQLState: " & oaiConn.Errors(0).SQLState & " VB Error:
" & errnum & ":" & errdes
oaiErrMsg SQL & VB Error: Err.Number Err.Description
oaiErrCode 502
oaiErrSuppCode oaiConn.Errors(0).NativeError
oaiErrSuppMsg oaiConn.Errors(0).SQLState
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:1451: WriteHistory stsFailed, "Invalid
command line: '" & Command & "' The repositoryID param
is required"
oaiErrMsg Invalid command line: 'repositoryID' is
required
oaiErrCode 601
oaiErrSuppCode 0
oaiErrSuppMsg Command
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

OAIMainForm.frm:1467: WriteHistory stsFailed, "Invalid
command line: '" & Command & "' Could not find
repositoryID in database"
oaiErrMsg Invalid command line: could not find the
repositoryID in database
oaiErrCode 602
oaiErrSuppCode 0
oaiErrSuppMsg Command
oaiCounters
New:NewDel:Unchanged:UnchangedDel:Updated:UpdatedDel:All

Discussion

  • Thomas G. Habing

    • milestone: --> All Harvesters
     
  • Thomas G. Habing

    • priority: 5 --> 2
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks