1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-24 10:14:55 +02:00
bitwarden-mobile/src/Core/Exceptions/ApiException.cs
2019-04-10 15:03:09 -04:00

21 lines
397 B
C#

using Bit.Core.Models.Response;
using System;
namespace Bit.Core.Exceptions
{
public class ApiException : Exception
{
public ApiException()
: base("An API error has occurred.")
{ }
public ApiException(ErrorResponse error)
: this()
{
Error = error;
}
public ErrorResponse Error { get; set; }
}
}