//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//------------------------------------------------------------------------------
namespace System.Xml.Schema {
///
///
/// Returns detailed information relating to
/// the ValidationEventhandler.
///
public class ValidationEventArgs : EventArgs {
XmlSchemaException ex;
XmlSeverityType severity;
internal ValidationEventArgs( XmlSchemaException ex ) : base() {
this.ex = ex;
severity = XmlSeverityType.Error;
}
internal ValidationEventArgs( XmlSchemaException ex , XmlSeverityType severity ) : base() {
this.ex = ex;
this.severity = severity;
}
///
public XmlSeverityType Severity {
get { return severity;}
}
///
public XmlSchemaException Exception {
get { return ex;}
}
///
///
/// Gets the text description corresponding to the
/// validation error.
///
public String Message {
get { return ex.Message;}
}
}
}