Skip to content

Commit

Permalink
Implement standard constructors for UserErrorException and ConverterE…
Browse files Browse the repository at this point in the history
…xception (#2098) #patch

Not needed in the code for now, but fixes warnings.
  • Loading branch information
IhateTrains authored Aug 12, 2024
1 parent 16936a4 commit 7769cc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions ImperatorToCK3/Exceptions/ConverterException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace ImperatorToCK3.Exceptions;
public class ConverterException : Exception {
public ConverterException(string message) : base(message) { }

public ConverterException(string? message, Exception? innerException) : base(message, innerException) {
}
public ConverterException(string? message, Exception? innerException) : base(message, innerException) { }

public ConverterException() : base() { }
}
7 changes: 4 additions & 3 deletions ImperatorToCK3/Exceptions/UserErrorException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace ImperatorToCK3.Exceptions;

class UserErrorException : ConverterException {
internal class UserErrorException : ConverterException {
public UserErrorException(string message) : base(message) { }

public UserErrorException(string? message, Exception? innerException) : base(message, innerException) {
}
public UserErrorException(string? message, Exception? innerException) : base(message, innerException) { }

public UserErrorException() : base() { }
}

0 comments on commit 7769cc7

Please sign in to comment.