diff options
Diffstat (limited to '')
-rw-r--r-- | MatrixRoomUtils.Core/MatrixException.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MatrixRoomUtils.Core/MatrixException.cs b/MatrixRoomUtils.Core/MatrixException.cs index 4795d6d..a469a62 100644 --- a/MatrixRoomUtils.Core/MatrixException.cs +++ b/MatrixRoomUtils.Core/MatrixException.cs @@ -16,6 +16,8 @@ public class MatrixException : Exception { [JsonPropertyName("retry_after_ms")] public int? RetryAfterMs { get; set; } + public string RawContent { get; set; } + public override string Message => $"{ErrorCode}: {ErrorCode switch { // common @@ -54,4 +56,4 @@ public class MatrixException : Exception { "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM" => $"Cannot leave server notice room: {Error}", _ => $"Unknown error: {new { ErrorCode, Error, SoftLogout, RetryAfterMs }.ToJson(ignoreNull: true)}" }}"; -} \ No newline at end of file +} |