diff --git a/src/main/resources/twilio-csharp/standard/CreateResponse.mustache b/src/main/resources/twilio-csharp/standard/CreateResponse.mustache index 97f3a032d..5d104303e 100644 --- a/src/main/resources/twilio-csharp/standard/CreateResponse.mustache +++ b/src/main/resources/twilio-csharp/standard/CreateResponse.mustache @@ -32,7 +32,7 @@ public class {{apiName}}Create{{resourceConstant}} : {{resourceConstant}} return JsonConvert.DeserializeObject<{{apiName}}Create{{resourceConstant}}>(json); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } public static string ToJson(object model) { @@ -40,7 +40,7 @@ public class {{apiName}}Create{{resourceConstant}} : {{resourceConstant}} return JsonConvert.SerializeObject(model); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } } \ No newline at end of file diff --git a/src/main/resources/twilio-csharp/standard/FetchResponse.mustache b/src/main/resources/twilio-csharp/standard/FetchResponse.mustache index 409a9c7de..8d604e8f5 100644 --- a/src/main/resources/twilio-csharp/standard/FetchResponse.mustache +++ b/src/main/resources/twilio-csharp/standard/FetchResponse.mustache @@ -32,7 +32,7 @@ public class {{apiName}}Fetch{{resourceConstant}} : {{resourceConstant}} return JsonConvert.DeserializeObject<{{apiName}}Fetch{{resourceConstant}}>(json); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } public static string ToJson(object model) { @@ -40,7 +40,7 @@ public class {{apiName}}Fetch{{resourceConstant}} : {{resourceConstant}} return JsonConvert.SerializeObject(model); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } } \ No newline at end of file diff --git a/src/main/resources/twilio-csharp/standard/PatchResponse.mustache b/src/main/resources/twilio-csharp/standard/PatchResponse.mustache index b4f63738b..75fcccfcd 100644 --- a/src/main/resources/twilio-csharp/standard/PatchResponse.mustache +++ b/src/main/resources/twilio-csharp/standard/PatchResponse.mustache @@ -32,7 +32,7 @@ public class {{apiName}}Patch{{resourceConstant}} : {{resourceConstant}} return JsonConvert.DeserializeObject<{{apiName}}Patch{{resourceConstant}}>(json); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } public static string ToJson(object model) { @@ -40,7 +40,7 @@ public class {{apiName}}Patch{{resourceConstant}} : {{resourceConstant}} return JsonConvert.SerializeObject(model); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } } \ No newline at end of file diff --git a/src/main/resources/twilio-csharp/standard/ReadResponse.mustache b/src/main/resources/twilio-csharp/standard/ReadResponse.mustache index ca032f268..86e81ab8c 100644 --- a/src/main/resources/twilio-csharp/standard/ReadResponse.mustache +++ b/src/main/resources/twilio-csharp/standard/ReadResponse.mustache @@ -31,7 +31,7 @@ public class {{apiName}}Read{{resourceConstant}} : {{resourceConstant}} return JsonConvert.DeserializeObject<{{apiName}}Read{{resourceConstant}}>(json); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } public static string ToJson(object model) { @@ -39,7 +39,7 @@ public class {{apiName}}Read{{resourceConstant}} : {{resourceConstant}} return JsonConvert.SerializeObject(model); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } } \ No newline at end of file diff --git a/src/main/resources/twilio-csharp/standard/UpdateResponse.mustache b/src/main/resources/twilio-csharp/standard/UpdateResponse.mustache index ace23e43b..d3fc1770b 100644 --- a/src/main/resources/twilio-csharp/standard/UpdateResponse.mustache +++ b/src/main/resources/twilio-csharp/standard/UpdateResponse.mustache @@ -32,7 +32,7 @@ public class {{apiName}}Update{{resourceConstant}} : {{resourceConstant}} return JsonConvert.DeserializeObject<{{apiName}}Update{{resourceConstant}}>(json); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } public static string ToJson(object model) { @@ -40,7 +40,7 @@ public class {{apiName}}Update{{resourceConstant}} : {{resourceConstant}} return JsonConvert.SerializeObject(model); } catch (JsonException e) { - throw new ApiException(e.Message, e); + throw new ApiStandardException(e.Message, e); } } } \ No newline at end of file