Files
Fonepay-Unity/Packages/com.darkmattergameproduction.com.darkmatter.fonepay-unity/Runtime/Models/FonepayError.cs
Savya Bikram Shah 9f620084b2 Added docs and test
2026-05-07 17:33:26 +05:45

22 lines
555 B
C#

using System;
namespace Darkmatter.Fonepay
{
public sealed class FonepayError : Exception
{
public int ErrorCode { get; }
public string Docs { get; }
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})";
}
}
}