SenseNet.ContentRepository.FieldParsingException.GetException C# (CSharp) Метод

GetException() статический приватный Метод

static private GetException ( Field field ) : FieldParsingException
field Field
Результат FieldParsingException
        internal static FieldParsingException GetException(Field field)
        {
            return GetException(field, null);
        }
        internal static FieldParsingException GetException(Field field, Exception innerException)

Same methods

FieldParsingException::GetException ( Field field, Exception innerException ) : FieldParsingException

Usage 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);
     }
 }