Skip to content

Commit 237fe97

Browse files
Merge pull request #691 from appwrite/fix-dotnet-exception
fix: Add type field to AppwriteException class to .NET SDK
2 parents d35c5af + 6ed61bc commit 237fe97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/dotnet/src/Appwrite/Exception.cs.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ namespace {{spec.title | caseUcfirst}}
55
public class {{spec.title | caseUcfirst}}Exception : Exception
66
{
77
public int? Code { get; set; }
8+
public string? Type { get; set; } = null;
89
public string? Response { get; set; } = null;
910

1011
public {{spec.title | caseUcfirst}}Exception(
1112
string? message = null,
1213
int? code = null,
14+
string? type = null,
1315
string? response = null) : base(message)
1416
{
1517
this.Code = code;
18+
this.Type = type
1619
this.Response = response;
1720
}
1821
public {{spec.title | caseUcfirst}}Exception(string message, Exception inner)

0 commit comments

Comments
 (0)