Returns detailed information about the schema exception.
Inheritance: System.Exception
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     Class6.yDnXvgqzyB5jw();
     base();
     ValidationUtils.ArgumentNotNull(ex, "ex");
     this._ex = ex;
 }
Beispiel #2
0
    public void JsonSchemaException()
    {
      JsonSchemaException exception = new JsonSchemaException();
      Assert.AreEqual("Exception of type 'Newtonsoft.Json.Schema.JsonSchemaException' was thrown.", exception.Message);

      exception = new JsonSchemaException("Message!");
      Assert.AreEqual("Message!", exception.Message);
      Assert.AreEqual(null, exception.InnerException);

      exception = new JsonSchemaException("Message!", new Exception("Inner!"));
      Assert.AreEqual("Message!", exception.Message);
      Assert.AreEqual("Inner!", exception.InnerException.Message);
    }
Beispiel #3
0
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     ValidationUtils.ArgumentNotNull(ex, "ex");
     this._ex = ex;
 }
Beispiel #4
0
 private void OnValidationEvent(JsonSchemaException exception)
 {
     ValidationEventHandler handler = ValidationEventHandler;
     if (handler != null)
         handler(this, new ValidationEventArgs(exception));
     else
         throw exception;
 }
Beispiel #5
0
 private void OnValidationEvent(JsonSchemaException exception)
 {
   ValidationEventHandler validationEventHandler = this.ValidationEventHandler;
   if (validationEventHandler == null)
     throw exception;
   validationEventHandler((object) this, new ValidationEventArgs(exception));
 }
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     ValidationUtils.ArgumentNotNull(ex, "ex");
       _ex = ex;
 }
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     ValidationUtils.ArgumentNotNull(ex, nameof(ex));
     _ex = ex;
 }
Beispiel #8
0
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     Class203.smethod_2(ex, "ex");
     this.jsonSchemaException_0 = ex;
 }
Beispiel #9
0
 internal ValidationEventArgs(JsonSchemaException ex)
 {
   ValidationUtils.ArgumentNotNull((object) ex, "ex");
   this._ex = ex;
 }