-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Replace generic exceptions with custom ones - Pull computation out of assertion calls
- Loading branch information
Showing
8 changed files
with
67 additions
and
29 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
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: 18 additions & 0 deletions
18
src/ManiaTemplates/Exceptions/ManiaScriptSourceMissingException.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace ManiaTemplates.Exceptions; | ||
|
||
public class ManiaScriptSourceMissingException : Exception | ||
{ | ||
public ManiaScriptSourceMissingException() | ||
{ | ||
} | ||
|
||
public ManiaScriptSourceMissingException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
public ManiaScriptSourceMissingException(string message, Exception inner) | ||
: base(message, inner) | ||
{ | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/ManiaTemplates/Exceptions/MissingAttributeException.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace ManiaTemplates.Exceptions; | ||
|
||
public class MissingAttributeException : Exception | ||
{ | ||
public MissingAttributeException() | ||
{ | ||
} | ||
|
||
public MissingAttributeException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
public MissingAttributeException(string message, Exception inner) | ||
: base(message, inner) | ||
{ | ||
} | ||
} |
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