private constructor

This commit is contained in:
Wolfgang Hottgenroth
2021-12-10 13:14:10 +01:00
parent a187c2e0ba
commit 7649bae60f

View File

@ -33,7 +33,10 @@ namespace NAMESPACEPLACEHOLDER.Client {
/// </summary>
public String OffensiveData { get; }
public ExtApiException(ErrorResultObject ero): base(ero.errorCode, ero.errorMessage, ero) {
/// <summary>
/// Constructor of the ExtApiException, only to be used by the below factory method
/// </summary>
private ExtApiException(ErrorResultObject ero): base(ero.errorCode, ero.errorMessage, ero) {
ErrorCode = ero.errorCode;
ServiceErrorCode = ero.serviceErrorCode;
OffensiveData = ero.offensiveData;