1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * error.h: ErrorEventArgs and its subclasses
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2007 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
14 #ifndef __MOON_ERROR_H__
15 #define __MOON_ERROR_H__
22 class ParserErrorEventArgs
;
31 ARGUMENT_OUT_OF_RANGE
= 4,
32 INVALID_OPERATION
= 5,
33 XAML_PARSE_EXCEPTION
= 6,
34 UNAUTHORIZED_ACCESS
= 7,
35 EXECUTION_ENGINE_EXCEPTION
= 8,
36 GCHANDLE_EXCEPTION
= 9
39 // non-zero if an error occurred.
42 // the silverlight error code
45 // Used for xaml parsing exceptions
51 // managed code has thrown an exception, we store a gchandle
52 // to the exception here.
56 MoonError (ExceptionType type
, int code
, const char *message
);
59 MoonError (const MoonError
&e
);
60 MoonError
& operator= (const MoonError
& other
);
64 static void FillIn (MoonError
*error
, ExceptionType type
, int code
, const char *message
);
65 static void FillIn (MoonError
*error
, ExceptionType type
, const char *message
);
66 static void FillIn (MoonError
*error
, ParserErrorEventArgs
*error_args
);
69 #endif /* __MOON_ERROR_H__ */