-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
98 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
using PixiEditor.Localization; | ||
|
||
namespace PixiEditor.Exceptions; | ||
|
||
[Serializable] | ||
internal class CorruptedFileException : RecoverableException | ||
{ | ||
public CorruptedFileException() | ||
: base("The file you've chosen might be corrupted.") | ||
{ | ||
} | ||
|
||
public CorruptedFileException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
public CorruptedFileException(string message, Exception inner) | ||
: base(message, inner) | ||
{ | ||
} | ||
|
||
protected CorruptedFileException( | ||
System.Runtime.Serialization.SerializationInfo info, | ||
System.Runtime.Serialization.StreamingContext context) | ||
: base(info, context) | ||
{ | ||
} | ||
public CorruptedFileException() : base("FAILED_TO_OPEN_FILE") { } | ||
|
||
public CorruptedFileException(Exception innerException) : base("FAILED_TO_OPEN_FILE", innerException) { } | ||
|
||
public CorruptedFileException(LocalizedString displayMessage) : base(displayMessage) { } | ||
|
||
public CorruptedFileException(LocalizedString displayMessage, Exception innerException) : base(displayMessage, innerException) { } | ||
|
||
public CorruptedFileException(LocalizedString displayMessage, string exceptionMessage) : base(displayMessage, exceptionMessage) { } | ||
|
||
public CorruptedFileException(LocalizedString displayMessage, string exceptionMessage, Exception innerException) : base(displayMessage, exceptionMessage, innerException) { } | ||
|
||
protected CorruptedFileException(SerializationInfo info, StreamingContext context) : base(info, context) { } | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Runtime.Serialization; | ||
using PixiEditor.Localization; | ||
|
||
namespace PixiEditor.Exceptions; | ||
|
||
internal class InvalidFileTypeException : RecoverableException | ||
{ | ||
public InvalidFileTypeException() { } | ||
|
||
public InvalidFileTypeException(LocalizedString displayMessage) : base(displayMessage) { } | ||
|
||
public InvalidFileTypeException(LocalizedString displayMessage, Exception innerException) : base(displayMessage, innerException) { } | ||
|
||
public InvalidFileTypeException(LocalizedString displayMessage, string exceptionMessage) : base(displayMessage, exceptionMessage) { } | ||
|
||
public InvalidFileTypeException(LocalizedString displayMessage, string exceptionMessage, Exception innerException) : base(displayMessage, exceptionMessage, innerException) { } | ||
|
||
protected InvalidFileTypeException(SerializationInfo info, StreamingContext context) : base(info, context) { } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 14 additions & 4 deletions
18
src/PixiEditor/Models/IO/PaletteParsers/JascPalFile/JascFileException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
using PixiEditor.Exceptions; | ||
using System.Runtime.Serialization; | ||
using PixiEditor.Exceptions; | ||
using PixiEditor.Localization; | ||
|
||
namespace PixiEditor.Models.IO.PaletteParsers.JascPalFile; | ||
|
||
|
||
internal class JascFileException : RecoverableException | ||
{ | ||
public JascFileException(string message) : base(message) | ||
{ | ||
} | ||
public JascFileException() { } | ||
|
||
public JascFileException(LocalizedString displayMessage) : base(displayMessage) { } | ||
|
||
public JascFileException(LocalizedString displayMessage, Exception innerException) : base(displayMessage, innerException) { } | ||
|
||
public JascFileException(LocalizedString displayMessage, string exceptionMessage) : base(displayMessage, exceptionMessage) { } | ||
|
||
public JascFileException(LocalizedString displayMessage, string exceptionMessage, Exception innerException) : base(displayMessage, exceptionMessage, innerException) { } | ||
|
||
protected JascFileException(SerializationInfo info, StreamingContext context) : base(info, context) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters