Пример #1
0
        public virtual FeelConvertException unableToConvertValue(string feelExpression, FeelConvertException cause)
        {
            object value = cause.GetValue();
            Type   type  = cause.GetType();

            return(new FeelConvertException(this.ExceptionMessage("015", "Unable to convert value '{}' of type '{}' to type '{}' in expression '{}'", new object[] { value, value.GetType(), type, feelExpression }), cause));
        }
Пример #2
0
 public FeelConvertException(String message, FeelConvertException convertException) : base(message, convertException)
 {
     this.value = convertException.GetValue();
     this.type  = convertException.GetType();
 }