PlayerItemsException.cs 647 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Island.StandardLib.Exceptions
  6. {
  7. public class PlayerItemsException : Exception
  8. {
  9. public string PlayerName;
  10. public int AccountId;
  11. public string Requirements;
  12. public PlayerItemsException(string playername, int accid, string reqs)
  13. {
  14. PlayerName = playername;
  15. AccountId = accid;
  16. Requirements = reqs;
  17. }
  18. public override string Message => $"PlayerItemsException: At Player {PlayerName}(ID{AccountId}): Can not pass requirements {Requirements}.";
  19. }
  20. }