4 using System
.Runtime
.Serialization
;
7 /// Exception indicating that an attribute was not set.
10 public class AttributeNotSetException
: EventSystemException
15 /// Creates a new instance and initializes the error message.
17 /// <param name="errorMessage">an error message</param>
18 public AttributeNotSetException(string errorMessage
)
23 AttributeNotSetException(SerializationInfo info
, StreamingContext context
)
28 #endregion Constructors
32 /// Base class for exceptions thrown by the event system.
35 public class EventSystemException
: Exception
40 /// Creates a new instance.
42 /// <param name="errorMessage">error message</param>
43 public EventSystemException(string errorMessage
)
49 /// Creates a new instance.
51 /// <param name="errorMessage">error message</param>
52 /// <param name="innerException">exception that caused this exception</param>
53 public EventSystemException(string errorMessage
, Exception innerException
)
54 : base(errorMessage
, innerException
)
59 /// Creates a new instance from serialization.
61 /// <param name="info"></param>
62 /// <param name="context"></param>
63 public EventSystemException(SerializationInfo info
, StreamingContext context
)
68 #endregion Constructors
72 /// Exception thrown when an attriubte does not exist in an Event.
75 public class NoSuchAttributeException
: EventSystemException
80 /// Creates a new instance.
82 /// <param name="errorMessage">error message</param>
83 public NoSuchAttributeException(string errorMessage
)
89 /// Creates a new instance from serialization.
91 /// <param name="info"></param>
92 /// <param name="context"></param>
93 public NoSuchAttributeException(SerializationInfo info
, StreamingContext context
)
98 #endregion Constructors
102 /// Exception thrown when an attribute type does not exist.
105 public class NoSuchAttributeTypeException
: EventSystemException
110 /// Creates a new instance.
112 /// <param name="errorMessage">error message</param>
113 public NoSuchAttributeTypeException(string errorMessage
)
119 /// Creates a new instance from serialization.
121 /// <param name="info"></param>
122 /// <param name="context"></param>
123 public NoSuchAttributeTypeException(SerializationInfo info
, StreamingContext context
)
124 : base(info
, context
)
128 #endregion Constructors