Пример #1
0
        /// <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);
        }
Пример #2
0
 /// <inheritdoc/>
 public override void ReportError(
     EvaluationErrors errors,
     ModuleLiteral environment,
     LineInfo location,
     Expression expression,
     Context context)
 {
     errors.ReportFileNotFoundInStaticDirectory(environment, AbsolutePathToUnknownFile, location);
 }
Пример #3
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportInputValidationException(environment, this, location);
 }
Пример #4
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportJsonUnsuportedDynamicFieldsForSerialization(environment, this, location);
 }
Пример #5
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportDivideByZeroException(environment, expression, location);
 }
Пример #6
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportXmlInvalidStructure(environment, this, location);
 }
Пример #7
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportUnsupportedTypeValueObjectException(environment, this, location);
 }
Пример #8
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportUndefinedSetItem(environment, ErrorContext, Message, location);
 }
Пример #9
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     m_logAction(errors);
 }
Пример #10
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.DirectoryNotSupportedException(environment, expression, location);
 }
Пример #11
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportContractRequire(environment, expression, Message, location);
 }
Пример #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)));
 }
Пример #13
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportQualifierCannotBeCoarcedToQualifierSpace(environment, QualifierId, QualifierSpaceId, location);
 }
Пример #14
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportDisallowedUnsafeAmbientCallError(environment, expression, MethodName, location);
 }
Пример #15
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportKeyFormDllLoadedWithDifferentDll(environment, this, location);
 }
Пример #16
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportArithmeticOverflow(environment, expression, location);
 }
Пример #17
0
 /// <inheritdoc />
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportKeyFormDllWrongFileName(environment, this, location);
 }
Пример #18
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportInvalidKeyValueMap(environment, ErrorContext, Message, location);
 }
Пример #19
0
 /// <inheritdoc/>
 public override void ReportError(EvaluationErrors errors, ModuleLiteral environment, LineInfo location, Expression expression, Context context)
 {
     errors.ReportInvalidRadix(environment, expression, location, m_radix);
 }
Пример #20
0
 public static ItemIndexError ConvertSearchErrorCode(EvaluationErrors searchErrorCode)
 {
     return(NonIndexableItem.ConvertSearchErrorCode(searchErrorCode.ToString()));
 }