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