sharee.bike-App/SharedBusinessLogic/Repository/Exception/ResponseException.cs

16 lines
357 B
C#
Raw Normal View History

2024-04-09 12:53:23 +02:00
using ShareeBike.Repository.Response;
2021-05-13 20:03:07 +02:00
2024-04-09 12:53:23 +02:00
namespace ShareeBike.Repository.Exception
2021-05-13 20:03:07 +02:00
{
2022-09-06 16:08:19 +02:00
public class ResponseException : System.Exception
{
private readonly ResponseBase _response;
public ResponseException(ResponseBase response, string message) : base(message)
{
_response = response;
}
2021-05-13 20:03:07 +02:00
2022-09-06 16:08:19 +02:00
public string Response => _response.response_text;
}
2021-05-13 20:03:07 +02:00
}