<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="error_html.xslt"?>
<!--
Source file for digir diagnostic codes and types.
$Id: digir_errors.xml,v 1.2 2003/08/12 18:45:14 vieglais Exp $
-->
<Diagnostics>
	<levels>
		<level severity="debug" const="DIAG_DEBUG">
Message contains diagnostic information that can be helpful for determing
problems with an installation.  WARNING: content in the debug diagnostic
can provide sensitive information about the provider installation.
</level>
		<level severity="info" const="DIAG_INFO">
Message contains information about the status of the provider service or the
recent operation.
</level>
		<level severity="warn" const="DIAG_WARN">
Message contains information warning that the operation of the provider
service may be incorrect, but no particular error was detected.
</level>
		<level severity="error" const="DIAG_ERROR">
An error occured.  The results that were generated should not be trusted as
the content may be incorrect.
</level>
		<level severity="fatal" const="DIAG_FATAL">
Normal operation of the provider services was compromised execution of the 
request could not be completed.
</level>
	</levels>
	<codes>
		<code const="DC_PHPVERSION" value="PHP_VERSION" level="warn">
Indicates a mismatch between the version of PHP known to work correctly with 
DiGIR and the current PHP interpreter.  
</code>
		<code const="DC_FILTERTOOSHORT" value="FILTER_TOO_SHORT" level="warn">
The filter supplied in the request document was too brief (general) for this 
provider.
</code>
		<code const="DC_INVALIDQUERY" value="INVALID_QUERY" level="error">
The query supplied in the request document could not be parsed in the 
context of the requested resource.
</code>
		<code const="DC_INTERNALDATABASEERROR" value="INTERNAL_DATABASE_ERROR" level="error">
There was a problem with communication between the DiGIR script and the 
database that caused an error.
</code>
		<code const="DC_DATABASE_ERROR" value="DATABASE_ERROR" level="error">
Reports an error message that was generated by the database driver.  The 
text of the message is the error message provided by the database interface.
</code>
		<code const="DC_DEBUG_SQL" value="SQL_DEBUG_INFO" level="debug">
Contains native database query statements generated when the provider is in
debug mode.
</code>
		<code const="DC_MATCH_COUNT" value="MATCH_COUNT" level="info">
Contains the number of records that matched the query.  This is an integer 
value.
</code>
		<code const="DC_QUERYPRODUCEDNORESULTS" value="QUERY_PRODUCED_NO_RESULTS" level="warn">
An error message that indicates the query produced a null (empty) resultset.
</code>
		<code const="DC_ROW_COUNT" value="RECORD_COUNT" level="info">
An integer value that indicates the number of records that are returned in the
response.
</code>
		<code const="DC_END_OF_RECORDS" value="END_OF_RECORDS" level="info">
A boolean value (true | false, 0|1) indicating if the last record in the 
response document corresponds with the last record in the resultset.
</code>
		<code const="DC_BADQUERY" value="BAD_QUERY" level="error">
The filter structure could not be transformed into a native query language.
</code>
		<code const="DC_UNSUPPORTED_ACCESSPOINT" value="UNSUPPORTED_ACCESSPOINT" level="error">
An access point (searchable concept) used in the filter does not exist in the
resource.
</code>
		<code const="DC_COMPTYPENOTSUPPORTED" value="COMPARISON_TYPE_NOT_SUPPORTED" level="error">
A comparison type specified in the filter was not supported by the 
corresponding access point.
</code>
		<code const="DC_QUERYTERMTOOSHORT" value="QUERY_TERM_TOO_SHORT" level="level">
A term used in the query was shorted than the minimum allowed by the provider.
</code>
		<code const="DC_INVALIDTERM" value="INVALID_QUERY_TERM" level="error">
A query term was not in the expected form for the searchable concept.
</code>
		<code const="DC_BADCONCEPTMAP" value="BAD_CONCEPT_MAP" level="error">
The configuration for the concept map element specified in the diagnostic
message did not provide correct information for mapping to the database.
</code>
		<code const="DC_RESOURCENOTFOUND" value="RESOURCE_NOT_FOUND" level="error">
The requested resource was not available on the data provider.
</code>
		<code const="DC_INVALIDREQUEST" value="INVALID_REQUEST" level="error">
The request document was incorrect and the operation could not be determined.
</code>
		<code const="DC_FORMATLOADFAILED" value="LOAD_FORMAT_FAILED" level="error">
The requested record format could not be found or loaded.
</code>
		<code const="DC_METADATA" value="METADATA_FORMAT_PROBLEM" level="warn">
There was a problem processing the provider metadata description file.
</code>
		<code const="DC_NOFILTERSPECIFIED" value="NO_FILTER_IN_REQUEST" level="error">
No filter was provided in the search request.
</code>
		<code const="DC_NORESOURCESFILE" value="COULD_NOT_LOAD_RESOURCES_FILE" level="error">
The provider resource list could not be loaded.
</code>
		<code const="DC_NOREMOTEJOINS" value="REMOTE_JOINS_NOT_ALLOWED" level="error">
The operation requested a remote join, and that feature has been disabled on
the provider.
</code>
		<code const="DC_REMOTEJOINFAIL" value="REMOTE_JOIN_FAILED" level="error">
The remote join request failed to complete correctly.
</code>
		<code const="DC_REMOTEJOIN" value="REMOTE_JOIN_INFO" level="warn">
The response from the remote join was different to expected, but the operation
appeared to complete successfully.
</code>
		<code const="DC_CONFIGURATION_FAILURE" value="FAILED_CONFIGURATION_LOAD" level="fatal">
The configuration information for the provider could not be loaded, and hence 
the requested operation could not be completed.
</code>
		<code const="DC_NOCONTENT" value="NO_CONTENT_REQUESTED" level="warn">
The request does not ask for match count or any records.
</code>
		<code const="DC_TOOMANYERRORS" value="TOO_MANY_ERRORS" level="error">
Too many errors were encountered while processing the request.
</code>
		<code const="DC_LOG_ERROR" value="LOG_ERROR" level="error">
Problem occured when opening or writing to the log.
</code>
		<code const="DC_GENERAL_ERROR" value="GENERAL_ERROR" level="error">
A catch-all diagnostic for where no other appropriate category is available.
</code>
		<code const="DC_NOMBSTRING" value="NO_CHARACTER_CONVERSION" level="warn">
The mbstring library was not available, and hence no character conversion 
routines are available.  The resulting document may not conform to UTF-8
character encoding.
</code>
		<code const="DC_NOTALLOWED" value="DIGIR_NOT_ALLOWED" level="error">
The requested operation is not permitted by the configuration of the 
provider.
</code>
		<code const="DC_RECURSIVE" value="DIGIRM_RECURSIVE_OPERATION" level="error">
The DiGIRm request resolved to a recursive query and so was not processed.
</code>
		<code const="DC_STATUS_INTERVAL" value="STATUS_INTERVAL" level="info">
An integer value indicating the number of seconds for which the accompanying
STATUS_DATA value applys.
</code>
		<code const="DC_STATUS_DATA" value="STATUS_DATA" level="info">
An integer value indicating the number of requests that have been processed
in the last STATUS_INTERVAL seconds.  The count refers to the type of 
operation that generated the current document (e.g. metadata, search, or
inventory).
</code>
	</codes>
</Diagnostics>
