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 AchievmentTypeException : AchievmentException
{
///
/// Expected achievment type under
///
///
///
public Type Expected { get; private set; }
///
/// Actual achievment type under
///
///
///
public Type Actual { get; private set; }
public AchievmentTypeException(string message, string achievmentId, Type expectedType, Type actualType) : base(message, achievmentId)
{
Expected = expectedType;
Actual = actualType;
}
}
}