diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache
index 7af8e07602d7..a1a9fa976f58 100644
--- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache
@@ -1,2 +1,2 @@
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
\ No newline at end of file
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache
index 8c02da8f17c9..1b414eb8e5df 100644
--- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache
@@ -303,30 +303,30 @@ namespace {{packageName}}.{{apiPackage}}
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
{{#allParams}}
///
{{/allParams}}
- private void OnError{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}Exception exception string pathFormat string path {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}})
+ private void OnError{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}Exception exceptionLocalVar string pathFormatLocalVar string pathLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}})
{
- bool suppressDefaultLog = false;
- OnError{{operationId}}({{#lambda.joinWithComma}}ref suppressDefaultLog exception pathFormat path {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}});
+ bool suppressDefaultLogLocalVar = false;
+ OnError{{operationId}}({{#lambda.joinWithComma}}ref suppressDefaultLogLocalVar exceptionLocalVar pathFormatLocalVar pathLocalVar {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}});
{{>OnErrorDefaultImplementation}}
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
{{#allParams}}
///
{{/allParams}}
- partial void OnError{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLog Exception exception string pathFormat string path {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}});
+ partial void OnError{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLogLocalVar Exception exceptionLocalVar string pathFormatLocalVar string pathLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}});
///
/// {{summary}} {{notes}}
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs
index f65336b2c81a..4e25fbff5735 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -172,27 +172,27 @@ private void AfterListDefaultImplementation(IListApiResponse apiResponseLocalVar
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorListDefaultImplementation(Exception exception, string pathFormat, string path, string personId)
+ private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId)
{
- bool suppressDefaultLog = false;
- OnErrorList(ref suppressDefaultLog, exception, pathFormat, path, personId);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorList(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, personId);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorList(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string personId);
+ partial void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId);
///
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs
index 9fb9257ced6e..c2a2d862a621 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -155,25 +155,25 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs
index 9fb9257ced6e..c2a2d862a621 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -155,25 +155,25 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
index eef2a62a180a..1fd1ffef4feb 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
@@ -207,27 +207,27 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient)
+ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient)
{
- bool suppressDefaultLog = false;
- OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient);
+ partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient);
///
/// To test special tags To test special tags and operation ID starting with number
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs
index 5151d6053e5a..879c3ecdb9ad 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -404,25 +404,25 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
///
@@ -612,27 +612,27 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country)
+ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country)
{
- bool suppressDefaultLog = false;
- OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country);
+ partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country);
///
///
@@ -792,25 +792,25 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Hello Hello
@@ -985,25 +985,25 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
///
@@ -1178,25 +1178,25 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Retrieve an existing Notificationtest's Elements
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs
index 89f28095bdaa..38f936207662 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs
@@ -1313,25 +1313,25 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Health check endpoint
@@ -1510,27 +1510,27 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body)
+ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body)
{
- bool suppressDefaultLog = false;
- OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body);
+ partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body);
///
/// Test serialization of outer boolean types
@@ -1738,27 +1738,27 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite)
+ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite)
{
- bool suppressDefaultLog = false;
- OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite);
+ partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite);
///
/// Test serialization of object with outer number type
@@ -1957,27 +1957,27 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body)
+ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body)
{
- bool suppressDefaultLog = false;
- OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body);
+ partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body);
///
/// Test serialization of outer number types
@@ -2187,29 +2187,29 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
- private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body)
+ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body)
{
- bool suppressDefaultLog = false;
- OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
- partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body);
+ partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body);
///
/// Test serialization of outer string types
@@ -2412,25 +2412,25 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Array of Enums
@@ -2605,25 +2605,25 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Test mixed type anyOf deserialization
@@ -2798,25 +2798,25 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Test mixed type oneOf deserialization
@@ -3006,27 +3006,27 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody)
+ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody)
{
- bool suppressDefaultLog = false;
- OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody);
+ partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody);
///
/// test referenced additionalProperties
@@ -3195,27 +3195,27 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass)
+ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass)
{
- bool suppressDefaultLog = false;
- OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass);
+ partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass);
///
/// For this test, the body for this request much reference a schema named `File`.
@@ -3390,29 +3390,29 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
- private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user)
+ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user)
{
- bool suppressDefaultLog = false;
- OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
- partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user);
+ partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user);
///
///
@@ -3589,27 +3589,27 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient)
+ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient)
{
- bool suppressDefaultLog = false;
- OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient);
+ partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient);
///
/// To test \"client\" model To test \"client\" model
@@ -3864,9 +3864,9 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
///
@@ -3881,21 +3881,21 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam
///
///
///
- private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString)
+ private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString)
{
- bool suppressDefaultLog = false;
- OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
///
@@ -3910,7 +3910,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except
///
///
///
- partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString);
+ partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString);
///
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -4186,9 +4186,9 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
///
@@ -4197,21 +4197,21 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi
///
///
///
- private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray)
+ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray)
{
- bool suppressDefaultLog = false;
- OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
///
@@ -4220,7 +4220,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exception,
///
///
///
- partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray);
+ partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray);
///
/// To test enum parameters To test enum parameters
@@ -4438,37 +4438,37 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
///
///
///
///
- private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup)
+ private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup)
{
- bool suppressDefaultLog = false;
- OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
///
///
///
///
- partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup);
+ partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup);
///
/// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
@@ -4660,27 +4660,27 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody)
+ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody)
{
- bool suppressDefaultLog = false;
- OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody);
+ partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody);
///
/// test inline additionalProperties
@@ -4849,27 +4849,27 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest)
+ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest)
{
- bool suppressDefaultLog = false;
- OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest);
+ partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest);
///
/// test inline free-form additionalProperties
@@ -5044,29 +5044,29 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
- private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2)
+ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2)
{
- bool suppressDefaultLog = false;
- OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
- partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2);
+ partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2);
///
/// test json serialization of form data
@@ -5285,9 +5285,9 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
///
@@ -5297,21 +5297,21 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ
///
///
///
- private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable)
+ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable)
{
- bool suppressDefaultLog = false;
- OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
///
@@ -5321,7 +5321,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce
///
///
///
- partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable);
+ partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable);
///
/// To test the collection format in query parameters
@@ -5510,27 +5510,27 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody)
+ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody)
{
- bool suppressDefaultLog = false;
- OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody);
+ partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody);
///
/// test referenced string map
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
index ff66cc2a2097..010a227c8b27 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
@@ -207,27 +207,27 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient)
+ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient)
{
- bool suppressDefaultLog = false;
- OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient);
+ partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient);
///
/// To test class name in snake case To test class name in snake case
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs
index bc79234f09b1..145fee55d67e 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs
@@ -711,27 +711,27 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet)
+ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet)
{
- bool suppressDefaultLog = false;
- OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet);
+ partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet);
///
/// Add a new pet to the store
@@ -924,29 +924,29 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
- private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey)
+ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey)
{
- bool suppressDefaultLog = false;
- OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
- partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey);
+ partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey);
///
/// Deletes a pet
@@ -1118,27 +1118,27 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status)
+ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status)
{
- bool suppressDefaultLog = false;
- OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status);
+ partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status);
///
/// Finds Pets by status Multiple status values can be provided with comma separated strings
@@ -1394,27 +1394,27 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags)
+ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags)
{
- bool suppressDefaultLog = false;
- OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags);
+ partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags);
///
/// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@@ -1633,27 +1633,27 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId)
+ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId)
{
- bool suppressDefaultLog = false;
- OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId);
+ partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId);
///
/// Find pet by ID Returns a single pet
@@ -1878,27 +1878,27 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet)
+ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet)
{
- bool suppressDefaultLog = false;
- OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet);
+ partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet);
///
/// Update an existing pet
@@ -2109,31 +2109,31 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
///
- private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status)
+ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status)
{
- bool suppressDefaultLog = false;
- OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
///
- partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status);
+ partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status);
///
/// Updates a pet in the store with form data
@@ -2334,31 +2334,31 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
///
- private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file)
+ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file)
{
- bool suppressDefaultLog = false;
- OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
///
- partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file);
+ partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file);
///
/// uploads an image
@@ -2599,31 +2599,31 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
///
- private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata)
+ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata)
{
- bool suppressDefaultLog = false;
- OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
///
- partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata);
+ partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata);
///
/// uploads an image (required)
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs
index f098e2395926..928fbfa68f97 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs
@@ -394,27 +394,27 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId)
+ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId)
{
- bool suppressDefaultLog = false;
- OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId);
+ partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId);
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
@@ -561,25 +561,25 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Returns pet inventories by status Returns a map of status codes to quantities
@@ -767,27 +767,27 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId)
+ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId)
{
- bool suppressDefaultLog = false;
- OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId);
+ partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId);
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
@@ -995,27 +995,27 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order)
+ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order)
{
- bool suppressDefaultLog = false;
- OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order);
+ partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order);
///
/// Place an order for a pet
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs
index 25824cb3dcad..46a87aed2c07 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs
@@ -636,27 +636,27 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user)
+ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user)
{
- bool suppressDefaultLog = false;
- OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user);
+ partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user);
///
/// Create user This can only be done by the logged in user.
@@ -825,27 +825,27 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user)
+ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user)
{
- bool suppressDefaultLog = false;
- OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user);
+ partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user);
///
/// Creates list of users with given input array
@@ -1014,27 +1014,27 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user)
+ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user)
{
- bool suppressDefaultLog = false;
- OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user);
+ partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user);
///
/// Creates list of users with given input array
@@ -1203,27 +1203,27 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username)
+ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username)
{
- bool suppressDefaultLog = false;
- OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username);
+ partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username);
///
/// Delete user This can only be done by the logged in user.
@@ -1385,27 +1385,27 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username)
+ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username)
{
- bool suppressDefaultLog = false;
- OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username);
+ partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username);
///
/// Get user by user name
@@ -1665,29 +1665,29 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
- private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username)
+ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username)
{
- bool suppressDefaultLog = false;
- OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
- partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username);
+ partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username);
///
/// Logs user into the system
@@ -1884,25 +1884,25 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Logs out current logged in user session
@@ -2057,29 +2057,29 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
///
- private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username)
+ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username)
{
- bool suppressDefaultLog = false;
- OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
///
- partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username);
+ partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username);
///
/// Updated user This can only be done by the logged in user.
diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs
index 9fb9257ced6e..c2a2d862a621 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -155,25 +155,25 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
index eef2a62a180a..1fd1ffef4feb 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs
@@ -207,27 +207,27 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient)
+ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient)
{
- bool suppressDefaultLog = false;
- OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient);
+ partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient);
///
/// To test special tags To test special tags and operation ID starting with number
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs
index 5151d6053e5a..879c3ecdb9ad 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -404,25 +404,25 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
///
@@ -612,27 +612,27 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country)
+ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country)
{
- bool suppressDefaultLog = false;
- OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country);
+ partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country);
///
///
@@ -792,25 +792,25 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Hello Hello
@@ -985,25 +985,25 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
///
@@ -1178,25 +1178,25 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Retrieve an existing Notificationtest's Elements
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs
index 402f72e32af3..b3b0cf5352ff 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs
@@ -1313,25 +1313,25 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
- private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path)
+ ///
+ ///
+ ///
+ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar)
{
- bool suppressDefaultLog = false;
- OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
- partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar);
///
/// Health check endpoint
@@ -1510,27 +1510,27 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body)
+ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body)
{
- bool suppressDefaultLog = false;
- OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body);
+ partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body);
///
/// Test serialization of outer boolean types
@@ -1738,27 +1738,27 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite)
+ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite)
{
- bool suppressDefaultLog = false;
- OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite);
+ partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite);
///
/// Test serialization of object with outer number type
@@ -1957,27 +1957,27 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber
///
/// Logs exceptions that occur while retrieving the server response
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
- private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body)
+ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body)
{
- bool suppressDefaultLog = false;
- OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body);
- if (!suppressDefaultLog)
- Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ bool suppressDefaultLogLocalVar = false;
+ OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body);
+ if (!suppressDefaultLogLocalVar)
+ Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server.");
}
///
/// A partial method that gives developers a way to provide customized exception handling
///
- ///
- ///
- ///
- ///
+ ///
+ ///
+ ///
+ ///
///
- partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body);
+ partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body);
///