Example #1
0
 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");
 }
Example #2
0
 public static void YamlWontRoundTrip(this ErrorContainer errors, SourceLocation loc, string message)
 {
     errors.AddError(ErrorCode.YamlWontRoundtrip, loc, message);
 }
Example #3
0
 public static void BadParameter(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.BadParameter, default(SourceLocation), $"Bad parameter: {message}");
 }
Example #4
0
 public static void ChecksumMismatch(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.ChecksumMismatch, default(SourceLocation), $"Checksum mismatch. {message}");
 }
Example #5
0
 public static void MsAppFormatError(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.CantReadMsApp, default(SourceLocation), $"MsApp is corrupted: {message}");
 }
Example #6
0
 public static void UnsupportedError(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.UnsupportedError, default(SourceLocation), $"Not Supported: {message}");
 }
Example #7
0
 public static void ParseError(this ErrorContainer errors, SourceLocation span, string message)
 {
     errors.AddError(ErrorCode.ParseError, span, $"Parse error: {message}");
 }
Example #8
0
 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");
 }
Example #9
0
 public static void GenericMsAppError(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.MsAppError, default(SourceLocation), $"MsApp is corrupted. {message}");
 }
Example #10
0
 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}");
 }
Example #11
0
 public static void EditorStateError(this ErrorContainer errors, SourceLocation loc, string message)
 {
     errors.AddError(ErrorCode.IllegalEditorState, loc, $"Illegal editorstate file. {message}");
 }
Example #12
0
 public static void UnsupportedOperationError(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.UnsupportedUseStudio, default(SourceLocation), $"Unsupported operation error. {message}");
 }
Example #13
0
 public static void InternalError(this ErrorContainer errors, Exception e)
 {
     errors.AddError(ErrorCode.InternalError, default(SourceLocation), $"Internal error. {e.Message}");
 }
Example #14
0
 public static void FormatNotSupported(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.FormatNotSupported, default(SourceLocation), $"Format is not supported. {message}");
 }
Example #15
0
 public static void ValidationError(this ErrorContainer errors, SourceLocation span, string message)
 {
     errors.AddError(ErrorCode.Validation, span, $"Validation error: {message}");
 }
Example #16
0
 public static void GenericError(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.Generic, default(SourceLocation), message);
 }
Example #17
0
 public static void JSONPropertyRemoved(this ErrorContainer errors, string message)
 {
     errors.AddError(ErrorCode.JSONPropertyRemoved, default(SourceLocation), $"Property Removed: {message}");
 }