Browse Source

SavingNotSupportedException

Krzysztof Krysiński 2 years ago
parent
commit
fae4acdc37

+ 1 - 1
src/PixiEditor/Models/IO/PaletteParsers/PixiPaletteParser.cs

@@ -34,6 +34,6 @@ internal class PixiPaletteParser : PaletteFileParser
 
 
     public override Task<bool> Save(string path, PaletteFileData data)
     public override Task<bool> Save(string path, PaletteFileData data)
     {
     {
-        throw new NotImplementedException("Saving palette to .pixi directly is not supported.");
+        throw new SavingNotSupportedException("Saving palette as .pixi directly is not supported.");
     }
     }
 }
 }

+ 3 - 1
src/PixiEditor/Models/IO/PaletteParsers/SavingNotSupportedException.cs

@@ -2,5 +2,7 @@
 
 
 public class SavingNotSupportedException : Exception
 public class SavingNotSupportedException : Exception
 {
 {
-
+    public SavingNotSupportedException(string message) : base(message)
+    {
+    }
 }
 }