2024-04-09 12:53:23 +02:00
|
|
|
using ShareeBike.MultilingualResources;
|
2022-08-30 15:42:25 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
namespace ShareeBike.Repository.Exception
|
2021-05-13 20:03:07 +02:00
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
public class InvalidAuthorizationResponseException : InvalidResponseException<Response.ResponseBase>
|
|
|
|
{
|
|
|
|
/// <summary>Constructs a authorization exceptions. </summary>
|
|
|
|
/// <param name="mail">Mail address to create a detailed error message.</param>
|
|
|
|
public InvalidAuthorizationResponseException(string mail, Response.ResponseBase response) :
|
2023-08-31 12:20:06 +02:00
|
|
|
base(string.Format(AppResources.ErrorAccountInvalidAuthorization, mail), response)
|
2022-09-06 16:08:19 +02:00
|
|
|
{
|
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary> Holds error description if user/ password combination is not valid. </summary>
|
|
|
|
public const string AUTH_FAILURE_STATUS_MESSAGE_UPPERCASE = "FAILURE: CANNOT GENERATE AUTHCOOKIE";
|
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
}
|