2020-10-21 17:04:54 +02:00
|
|
|
|
using System;
|
2020-10-25 16:15:06 +01:00
|
|
|
|
using System.Runtime.Serialization;
|
2020-10-21 17:04:54 +02:00
|
|
|
|
|
2020-10-24 23:23:22 +02:00
|
|
|
|
namespace Birdmap.BLL.Exceptions
|
2020-10-21 17:04:54 +02:00
|
|
|
|
{
|
2020-10-25 16:15:06 +01:00
|
|
|
|
[Serializable]
|
2020-10-21 17:04:54 +02:00
|
|
|
|
public class AuthenticationException : Exception
|
|
|
|
|
{
|
|
|
|
|
public AuthenticationException()
|
|
|
|
|
: base("Username or password is incorrect.")
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-10-25 16:15:06 +01:00
|
|
|
|
|
|
|
|
|
public AuthenticationException(string message) : this()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AuthenticationException(string message, Exception innerException) : this()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected AuthenticationException(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-10-21 17:04:54 +02:00
|
|
|
|
}
|
|
|
|
|
}
|