~zorba-coders/zorba/bug-1189803

« back to all changes in this revision

Viewing changes to include/zorba/error.h

  • Committer: Luis Rodriguez Gonzalez
  • Date: 2013-09-19 14:00:22 UTC
  • mfrom: (11612.1.19 lp_zorba)
  • Revision ID: kuraru@gmail.com-20130919140022-tw41ekb6ey16xbxi
MergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#ifndef ZORBA_ERROR_API_H
18
18
#define ZORBA_ERROR_API_H
19
19
 
20
 
#include <zorba/internal/system_diagnostic.h>
 
20
#include <zorba/internal/diagnostic.h>
21
21
#include <zorba/internal/qname.h>
22
22
 
23
23
namespace zorba {
24
24
 
25
 
class Diagnostic;
26
25
namespace serialization {
27
26
  class Archiver;
28
27
  void operator&( serialization::Archiver&, const Diagnostic*& );
33
32
typedef Diagnostic Error;
34
33
 
35
34
/**
36
 
 * An %XQueryErrorCode is a diagnostic for all XQuery-specific errors.
37
 
 */
38
 
typedef internal::SystemDiagnostic<internal::XQueryErrQName> XQueryErrorCode;
39
 
 
40
 
/**
41
 
 * A %ZorbaErrorCode is a diagnostic for all Zorba-specific errors.
42
 
 */
43
 
typedef internal::SystemDiagnostic<internal::ZorbaErrQName> ZorbaErrorCode;
44
 
 
45
 
/**
46
 
 * An %JSONiqErrorCode is a diagnostic for all JSONiq-specific errors.
47
 
 */
48
 
typedef internal::SystemDiagnostic<internal::JSONiqErrQName> JSONiqErrorCode;
49
 
 
50
 
///////////////////////////////////////////////////////////////////////////////
51
 
 
52
 
/**
53
35
 * A %UserError is-a Diagnostic for user-defined errors via \c fn:error().
54
36
 */
55
37
class ZORBA_DLL_PUBLIC UserError : public Diagnostic {