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 /// Exception thrown when bad data is encountered during serialization.
35 public class BadLwesDataException
: EventSystemException
40 /// Creates a new instance.
42 /// <param name="errorMessage">error message</param>
43 public BadLwesDataException(string errorMessage
)
49 /// Creates a new instance from serialization.
51 /// <param name="info"></param>
52 /// <param name="context"></param>
53 public BadLwesDataException(SerializationInfo info
, StreamingContext context
)
58 #endregion Constructors
62 /// Base class for exceptions thrown by the event system.
65 public class EventSystemException
: Exception
70 /// Creates a new instance.
72 /// <param name="errorMessage">error message</param>
73 public EventSystemException(string errorMessage
)
79 /// Creates a new instance.
81 /// <param name="errorMessage">error message</param>
82 /// <param name="innerException">exception that caused this exception</param>
83 public EventSystemException(string errorMessage
, Exception innerException
)
84 : base(errorMessage
, innerException
)
89 /// Creates a new instance from serialization.
91 /// <param name="info"></param>
92 /// <param name="context"></param>
93 public EventSystemException(SerializationInfo info
, StreamingContext context
)
98 #endregion Constructors
102 /// Exception thrown when an attriubte does not exist in an Event.
105 public class NoSuchAttributeException
: EventSystemException
110 /// Creates a new instance.
112 /// <param name="errorMessage">error message</param>
113 public NoSuchAttributeException(string errorMessage
)
119 /// Creates a new instance from serialization.
121 /// <param name="info"></param>
122 /// <param name="context"></param>
123 public NoSuchAttributeException(SerializationInfo info
, StreamingContext context
)
124 : base(info
, context
)
128 #endregion Constructors
132 /// Exception thrown when an attribute type does not exist.
135 public class NoSuchAttributeTypeException
: EventSystemException
140 /// Creates a new instance.
142 /// <param name="errorMessage">error message</param>
143 public NoSuchAttributeTypeException(string errorMessage
)
149 /// Creates a new instance from serialization.
151 /// <param name="info"></param>
152 /// <param name="context"></param>
153 public NoSuchAttributeTypeException(SerializationInfo info
, StreamingContext context
)
154 : base(info
, context
)
158 #endregion Constructors