GetException() static private method

static private GetException ( Field field ) : FieldParsingException
field Field
return FieldParsingException
Example #1
0
 public bool Parse(string value)
 {
     try
     {
         if (!ParseValue(value))
         {
             this.ValidationResult = new FieldValidationResult("FieldParse");
             this.ValidationResult.AddParameter("InputValue", value);
             return(false);
         }
         else
         {
             Validate();
             return(IsValid);
         }
     }
     catch (Exception e) // rethrow
     {
         throw FieldParsingException.GetException(this, e);
     }
 }