public ApiException(ApiExceptionCode code, Dictionary <string, object> data, string message, Exception inner) : base(message, inner) { Code = code; data ??= new Dictionary <string, object>(); foreach (var kvp in data) { Data[kvp.Key] = kvp.Value; } Data[nameof(Code)] = code.ToString("G"); }
public ApiException(ApiExceptionCode code) : this(code, ApiExceptionMessageAttribute.GetMessage(code), null) { }
public ApiException(ApiExceptionCode code, string message, Exception innerException) : base(message, innerException) { this.Code = code; }
public ApiException(ApiExceptionCode code, string message) : this(code, message, null) { }
public ApiException(ApiExceptionCode code, Dictionary <string, object> data) : this(code, data, null) { }
public ApiException(ApiExceptionCode code, Dictionary <string, object> data, string message) : this(code, data, message, null) { }
public ApiException(ApiExceptionCode code) : this(code, new Dictionary <string, object>()) { }
public ApiException(ApiExceptionCode exceptionCode, string message, Exception innerException) : base(message, innerException) { ExceptionCode = exceptionCode; }
public ApiException(ApiExceptionCode exceptionCode, string message) : base(message) { ExceptionCode = exceptionCode; }
public ApiException(ApiExceptionCode exceptionCode) { ExceptionCode = exceptionCode; }
public ApiException(ApiExceptionCode code) : this(code, code.GetDescriptionAttribute(), null) { }