11 lines
385 B
C#
11 lines
385 B
C#
namespace Neighbourhood.omg.lol.Models {
|
|
public class OmgLolApiException<T> : Exception where T : IOmgLolResponseData {
|
|
public OmgLolResponse<T>? Response { get; set; }
|
|
|
|
public OmgLolApiException(OmgLolResponse<T>? response) : base(response?.Response?.Message) {
|
|
Response = response;
|
|
}
|
|
|
|
public OmgLolApiException(string? response) : base(response) { }
|
|
}
|
|
}
|