[gxml] * document DomError
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] * document DomError
- Date: Thu, 21 Jul 2011 19:47:56 +0000 (UTC)
commit 8066d4a24b33396a43e59ca35e895f1d0a950214
Author: Richard Schwarting <aquarichy gmail com>
Date: Thu Jul 21 14:38:38 2011 -0400
* document DomError
gxml/DomError.vala | 63 ++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 59 insertions(+), 4 deletions(-)
---
diff --git a/gxml/DomError.vala b/gxml/DomError.vala
index 23f2f84..c85b405 100644
--- a/gxml/DomError.vala
+++ b/gxml/DomError.vala
@@ -5,12 +5,67 @@
http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-BBACDC08 */
namespace GXml.Dom {
+ /**
+ * Describes various error states. For more, see
+ * [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-BBACDC08]]
+ */
public errordomain DomError {
/* These error codes are from the IDL: TODO: find out when I should use them */
/* TODO: probably want to document them :) */
- INDEX_SIZE, DOMSTRING_SIZE, HIERARCHY_REQUEST, WRONG_DOCUMENT, INVALID_CHARACTER, NO_DATA_ALLOWED,
- NO_MODIFICATION_ALLOWED, NOT_FOUND, NOT_SUPPORTED, INUSE_ATTRIBUTE,
- /* These error codes are mine, and should perhaps come from a separate domain */
- DOM, INVALID_DOC, INVALID_ROOT
+ /**
+ * An index or size is out of range, like less than 0 or exceeding some upper bound.
+ */
+ INDEX_SIZE,
+ /**
+ * Text exceeds the maximum size supported in our string implementation.
+ */ // TODO: figure out what the limits of strings are in vala
+ DOMSTRING_SIZE,
+ /**
+ * A node asked to be inserted into an invalid location.
+ */
+ HIERARCHY_REQUEST,
+ /**
+ * A node created for one document wanted to be used in another.
+ */
+ WRONG_DOCUMENT,
+ /**
+ * An invalid character was found in a name.
+ */ // TODO: which characters are invalid?
+ INVALID_CHARACTER,
+ /**
+ * Tried to specify data for a node that did not support it.
+ */
+ NO_DATA_ALLOWED,
+ /**
+ * Attempted to modify a read-only node.
+ */
+ NO_MODIFICATION_ALLOWED,
+ /**
+ * A reference to a non-existent node was made.
+ */
+ NOT_FOUND,
+ /**
+ * A request was made for something that this implementation does not support.
+ */
+ NOT_SUPPORTED,
+ /**
+ * An element tried to make use of an attribute already attached to another element.
+ */
+ INUSE_ATTRIBUTE,
+
+ /* These error codes are mine,
+ and should perhaps come from a separate domain */
+ /**
+ * Generic error in creating the DOM.
+ */
+ DOM,
+ /**
+ * A document could not be parsed due to invalid XML.
+ */
+ INVALID_DOC,
+ /**
+ * A document lacked a root element.
+ */
+ INVALID_ROOT
}
}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]