using JetBrains.Annotations; using System; namespace NEG.Utils.Achievments { public class AchievmentException : ApplicationException { /// /// Id of related achievment /// /// /// public string Id { get; private set; } public AchievmentException(string message, string achievmentId) : base(message) { Id = achievmentId; } } public class AchievmentTypeExcetion : AchievmentException { /// /// Expected achievment type under /// /// /// public Type Expected { get; private set; } /// /// Actual achievment type under /// /// /// public Type Actual { get; private set; } public AchievmentTypeExcetion(string message, string achievmentId, Type expectedType, Type actualType) : base(message, achievmentId) { Expected = expectedType; Actual = actualType; } } }