public NeitsilliaError(string msg, NeitsilliaErrorType type, MsgType?ui = null, Player player = null) { ExtraMessage = msg; ErrorType = type; uitype = ui; this.player = player; }
internal static NeitsilliaError Is(Exception exception, NeitsilliaErrorType type) { if (exception is NeitsilliaError error && error.ErrorType == type) { return(error); } return(null); }
internal static bool Is(Exception exception, NeitsilliaErrorType type, out NeitsilliaError error) { error = null; return(exception is NeitsilliaError e && (error = e).ErrorType == type); }