Impelement IHasErrorCode, IHasErrorDetails for AbpRemoteCallException.

pull/279/head
Halil İbrahim Kalkan 8 years ago
parent 19eb291cef
commit a78516af0d

@ -2,6 +2,6 @@
{
public interface IHasErrorCode
{
string Code { get; set; }
string Code { get; }
}
}

@ -2,6 +2,6 @@ namespace Volo.Abp.ExceptionHandling
{
public interface IHasErrorDetails
{
string Details { get; set; }
string Details { get; }
}
}

@ -1,11 +1,16 @@
using System;
using System.Runtime.Serialization;
using Volo.Abp.ExceptionHandling;
namespace Volo.Abp.Http.Client
{
[Serializable]
public class AbpRemoteCallException : AbpException
public class AbpRemoteCallException : AbpException, IHasErrorCode, IHasErrorDetails
{
public string Code => Error?.Code;
public string Details => Error?.Details;
public RemoteServiceErrorInfo Error { get; set; }
public AbpRemoteCallException()

Loading…
Cancel
Save