GameException.cs 306 B

12345678910111213141516
  1. using System;
  2. namespace Model
  3. {
  4. public class GameException: Exception
  5. {
  6. public int ErrorCode { get; private set; }
  7. public string ErrorInfo { get; private set; }
  8. public GameException(int errorCode, string errorInfo): base(errorInfo)
  9. {
  10. this.ErrorCode = errorCode;
  11. }
  12. }
  13. }