Author: jackson
Date: 2007-06-13 16:49:16 -0400 (Wed, 13 Jun 2007)
New Revision: 79503

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/runtime.h
Log:

        * runtime.h: Add some of the error event handler args, so i can
        use these in the parser.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-13 20:45:34 UTC (rev 79502)
+++ trunk/moon/src/ChangeLog    2007-06-13 20:49:16 UTC (rev 79503)
@@ -1,3 +1,8 @@
+2007-06-13  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * runtime.h: Add some of the error event handler args, so i can
+       use these in the parser.
+
 2007-06-13  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * brush.cpp (OnPropertyChanged): Free list nodes as we iterate

Modified: trunk/moon/src/runtime.h
===================================================================
--- trunk/moon/src/runtime.h    2007-06-13 20:45:34 UTC (rev 79502)
+++ trunk/moon/src/runtime.h    2007-06-13 20:49:16 UTC (rev 79503)
@@ -321,6 +321,44 @@
        Value::Kind GetObjectType () { return Value::VISUAL; }; 
 };
 
+enum ErrorType {
+       NoError,
+       UnknownError,
+       InitializeError,
+       ParserError,
+       ObjectModelError,
+       RuntimeError,
+       DownloadError,
+       MediaError,
+       ImageError
+};
+
+struct ErrorEventArgs /* : public EventArgs */ {
+
+ public:
+       int error_code;;
+       const char *error_message;
+       ErrorType error_type;
+};
+
+struct ParserErrorEventArgs : public ErrorEventArgs {
+
+ public:
+
+       ParserErrorEventArgs () : char_position (0), line_number (0), xaml_file 
(NULL),
+       xml_element (NULL), xml_attribute (NULL)
+       {
+               error_type = ParserError;
+       }
+       
+       
+       int char_position;
+       int line_number;
+       const char *xaml_file;
+       const char *xml_element;
+       const char *xml_attribute;
+};
+
 //
 // Collection: provides a collection that we can monitor for
 // changes.   We expose this collection in a few classes to

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to