public static void PostUnpackValidationFailed(this ErrorContainer errors) { errors.AddError(ErrorCode.UnpackValidationFailed, default(SourceLocation), "Roundtrip validation on unpack failed. This is always a bug, please file an issue at https://github.com/microsoft/PowerApps-Language-Tooling"); }
public static void YamlWontRoundTrip(this ErrorContainer errors, SourceLocation loc, string message) { errors.AddError(ErrorCode.YamlWontRoundtrip, loc, message); }
public static void BadParameter(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.BadParameter, default(SourceLocation), $"Bad parameter: {message}"); }
public static void ChecksumMismatch(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.ChecksumMismatch, default(SourceLocation), $"Checksum mismatch. {message}"); }
public static void MsAppFormatError(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.CantReadMsApp, default(SourceLocation), $"MsApp is corrupted: {message}"); }
public static void UnsupportedError(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.UnsupportedError, default(SourceLocation), $"Not Supported: {message}"); }
public static void ParseError(this ErrorContainer errors, SourceLocation span, string message) { errors.AddError(ErrorCode.ParseError, span, $"Parse error: {message}"); }
public static void PostUnpackValidationFailed(this ErrorContainer errors) { errors.AddError(ErrorCode.UnpackValidationFailed, default(SourceLocation), "Roundtrip validation on unpack failed. \nYou have found a bug; this is not a specific bug, rather an indicator that some bug has been encountered.\nPlease open an issue and log the entirety of this error log at https://github.com/microsoft/PowerApps-Language-Tooling\n"); }
public static void GenericMsAppError(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.MsAppError, default(SourceLocation), $"MsApp is corrupted. {message}"); }
public static void DuplicateSymbolError(this ErrorContainer errors, SourceLocation loc, string message, SourceLocation loc2) { errors.AddError(ErrorCode.DuplicateSymbol, loc, $"Symbol '{message}' is already defined. Previously at {loc2}"); }
public static void EditorStateError(this ErrorContainer errors, SourceLocation loc, string message) { errors.AddError(ErrorCode.IllegalEditorState, loc, $"Illegal editorstate file. {message}"); }
public static void UnsupportedOperationError(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.UnsupportedUseStudio, default(SourceLocation), $"Unsupported operation error. {message}"); }
public static void InternalError(this ErrorContainer errors, Exception e) { errors.AddError(ErrorCode.InternalError, default(SourceLocation), $"Internal error. {e.Message}"); }
public static void FormatNotSupported(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.FormatNotSupported, default(SourceLocation), $"Format is not supported. {message}"); }
public static void ValidationError(this ErrorContainer errors, SourceLocation span, string message) { errors.AddError(ErrorCode.Validation, span, $"Validation error: {message}"); }
public static void GenericError(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.Generic, default(SourceLocation), message); }
public static void JSONPropertyRemoved(this ErrorContainer errors, string message) { errors.AddError(ErrorCode.JSONPropertyRemoved, default(SourceLocation), $"Property Removed: {message}"); }