GameException.cs 539 B

1234567891011121314151617181920212223242526
  1. using System;
  2. namespace Model
  3. {
  4. public class GameException : Exception
  5. {
  6. public GameException(string message): base(message)
  7. {
  8. }
  9. public GameException(string format, params object[] args)
  10. : base(string.Format(format, args))
  11. {
  12. }
  13. public GameException(string message, Exception innerException)
  14. : base(message, innerException)
  15. {
  16. }
  17. public GameException(string format, Exception innerException, params object[] args)
  18. : base(string.Format(format, args), innerException)
  19. {
  20. }
  21. }
  22. }