From 24b9db21bdbd947a9eb6714e3cc60af3aeb24d1d Mon Sep 17 00:00:00 2001 From: Beckam White <47697544+BJDubb@users.noreply.github.com> Date: Fri, 15 May 2020 22:00:11 +1000 Subject: [PATCH] Update PlayStationApiException.cs Allows the underlying error to be thrown when debugging. Errors such as "(2114059) Rate limit exceeded" aren't visible. --- PlayStationSharp/Exceptions/PlayStationApiException.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PlayStationSharp/Exceptions/PlayStationApiException.cs b/PlayStationSharp/Exceptions/PlayStationApiException.cs index cfa613e..aff6a73 100644 --- a/PlayStationSharp/Exceptions/PlayStationApiException.cs +++ b/PlayStationSharp/Exceptions/PlayStationApiException.cs @@ -8,6 +8,9 @@ public class PlayStationApiException : Exception { public Error Error; - public PlayStationApiException(Error error) => Error = error; + public PlayStationApiException(Error error) : base(error.Message) + { + Error = error; + } } }