/// Constructs a DispatcherException with a message and DispatcherExceptionType public DispatcherException(string message, DispatcherExceptionType exceptionType) : base(message) { type = exceptionType; }