Fixes and sample

This commit is contained in:
Savya Bikram Shah
2026-05-07 15:59:29 +05:45
parent 08d59d63c8
commit 906ebbcac9
95 changed files with 61557 additions and 137 deletions

View File

@@ -5,11 +5,18 @@ namespace Darkmatter.Fonepay
public sealed class FonepayError : Exception
{
public int ErrorCode { get; }
public string Docs { get; }
public FonepayError(int errorCode, string message,
string docs)
public FonepayError(int errorCode, string message, string docs)
: base(message)
{
ErrorCode = errorCode;
Docs = docs ?? throw new ArgumentNullException(nameof(docs));
}
public override string ToString()
{
return $"{base.ToString()} (ErrorCode: {ErrorCode}, Docs: {Docs})";
}
}
}