/// <inheritdoc/>
        public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
        {
            string additionalInformation =
                string.IsNullOrEmpty(WrappedException.Message)
                    ? string.Empty
                    : I($" : {WrappedException.Message}");

            errors.ReportFileOperationError(environment, expression, additionalInformation, location);
        }
Example #2
0
 /// <inheritdoc/>
 public override void ReportError(
     EvaluationErrors errors,
     ModuleLiteral environment,
     LineInfo location,
     Expression expression,
     Context context)
 {
     errors.ReportFileNotFoundInStaticDirectory(environment, AbsolutePathToUnknownFile, location);
 }
Example #3
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportInputValidationException(environment, this, location);
 }
Example #4
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportJsonUnsuportedDynamicFieldsForSerialization(environment, this, location);
 }
Example #5
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportDivideByZeroException(environment, expression, location);
 }
Example #6
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportXmlInvalidStructure(environment, this, location);
 }
Example #7
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportUnsupportedTypeValueObjectException(environment, this, location);
 }
Example #8
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportUndefinedSetItem(environment, ErrorContext, Message, location);
 }
Example #9
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     m_logAction(errors);
 }
Example #10
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.DirectoryNotSupportedException(environment, expression, location);
 }
Example #11
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportContractRequire(environment, expression, Message, location);
 }
Example #12
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportContractFail(environment, Message, location, context.GetStackTraceAsString(UniversalLocation.FromLineInfo(location, environment.Path, context.PathTable)));
 }
Example #13
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportQualifierCannotBeCoarcedToQualifierSpace(environment, QualifierId, QualifierSpaceId, location);
 }
Example #14
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportDisallowedUnsafeAmbientCallError(environment, expression, MethodName, location);
 }
Example #15
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportKeyFormDllLoadedWithDifferentDll(environment, this, location);
 }
Example #16
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportArithmeticOverflow(environment, expression, location);
 }
Example #17
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportKeyFormDllWrongFileName(environment, this, location);
 }
Example #18
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportInvalidKeyValueMap(environment, ErrorContext, Message, location);
 }
Example #19
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportInvalidRadix(environment, expression, location, m_radix);
 }
 public static ItemIndexError ConvertSearchErrorCode(EvaluationErrors searchErrorCode)
 {
     return(NonIndexableItem.ConvertSearchErrorCode(searchErrorCode.ToString()));
 }