Skip to content

Commit

Permalink
fixed innerException nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
lostmsu committed Jan 26, 2023
1 parent 2c8f8c9 commit f34aba6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ShellUnresponsiveException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ public class ShellUnresponsiveException: Exception
const string DefaultMessage = "Shell is unresponsive";

public ShellUnresponsiveException() : base(DefaultMessage) { }
public ShellUnresponsiveException(string message, Exception innerException)
public ShellUnresponsiveException(string message, Exception? innerException)
: base(message, innerException) { }
public ShellUnresponsiveException(Exception innerException)
public ShellUnresponsiveException(Exception? innerException)
: base(DefaultMessage, innerException: innerException) { }
}
}
4 changes: 2 additions & 2 deletions WindowNotFoundException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ public class WindowNotFoundException: Exception

public WindowNotFoundException() : base(DefaultMessage) { }

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

public WindowNotFoundException(Exception innerException):
public WindowNotFoundException(Exception? innerException):
base(DefaultMessage, innerException: innerException) { }
}
}

0 comments on commit f34aba6

Please sign in to comment.