next up previous contents index
Next: 9.3.8 Unsupported features Up: 9.3 Predicate Reference Previous: 9.3.6 External Entities   Contents   Index

9.3.7 Exceptions

Exceptions are generated by the parser in two cases. The first case is when the user specifies wrong input. For example when specifying

load_structure( string('<m></m>'), Document, [line(xyz)], Warn)
The string xyz is not in the domain of line. Hence in this case a domain error exception will be thrown.

Exceptions are generated when XML being parsed is not well formed. For example if the input XML contains

'<m></m1>'
exceptions will be thrown.

In both cases the format of the exception is

  error( sgml( error term), error message)
  warning( sgml( warning term), warning message)
where error term or warning term can be of the form


next up previous contents index
Next: 9.3.8 Unsupported features Up: 9.3 Predicate Reference Previous: 9.3.6 External Entities   Contents   Index
Terrance Swift 2007-10-06