mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-27 03:52:57 +02:00
21 lines
397 B
C#
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; }
|
|
}
|
|
}
|