21 lines
646 B
C#
21 lines
646 B
C#
using Knoks.Api.Client.Invoker;
|
|
using System;
|
|
|
|
namespace Knoks.Api.Client
|
|
{
|
|
public class ApiErrorException : Exception
|
|
{
|
|
public IApiResult ApiResult { get; }
|
|
|
|
public ApiErrorException(IApiResult apiResult) { ApiResult = apiResult; }
|
|
public ApiErrorException(IApiResult apiResult, string msg) : base(msg) { ApiResult = apiResult; }
|
|
public ApiErrorException(IApiResult apiResult, string msg, Exception innerException) : base(msg, innerException) { ApiResult = apiResult; }
|
|
}
|
|
|
|
public class ApiError
|
|
{
|
|
public ApiErrorType Id { get; set; }
|
|
public string Msg { get; set; }
|
|
}
|
|
}
|