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