Returns detailed information about the schema exception.
Наследование: System.Exception
Пример #1
0
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     Class6.yDnXvgqzyB5jw();
     base();
     ValidationUtils.ArgumentNotNull(ex, "ex");
     this._ex = ex;
 }
Пример #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);
    }
Пример #3
0
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     ValidationUtils.ArgumentNotNull(ex, "ex");
     this._ex = ex;
 }
Пример #4
0
 private void OnValidationEvent(JsonSchemaException exception)
 {
     ValidationEventHandler handler = ValidationEventHandler;
     if (handler != null)
         handler(this, new ValidationEventArgs(exception));
     else
         throw exception;
 }
Пример #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;
 }
Пример #8
0
 internal ValidationEventArgs(JsonSchemaException ex)
 {
     Class203.smethod_2(ex, "ex");
     this.jsonSchemaException_0 = ex;
 }
Пример #9
0
 internal ValidationEventArgs(JsonSchemaException ex)
 {
   ValidationUtils.ArgumentNotNull((object) ex, "ex");
   this._ex = ex;
 }