[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eFailurePolicy\u003c/code\u003e class within the Google Cloud Functions v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFailurePolicy\u003c/code\u003e class describes how a function should handle execution failures, with options like retrying or ignoring failures.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eFailurePolicy\u003c/code\u003e class is 2.7.0, and the page also lists several older versions ranging from 1.1.0 to 2.6.0, with links to their respective documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFailurePolicy\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe two properties available for this class are the \u003ccode\u003eActionCase\u003c/code\u003e of type \u003ccode\u003eFailurePolicy.ActionOneofCase\u003c/code\u003e and the \u003ccode\u003eRetry\u003c/code\u003e property of type \u003ccode\u003eFailurePolicy.Types.Retry\u003c/code\u003e which dictates whether or not the function will retry upon failure.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v1 API - Class FailurePolicy (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.FailurePolicy)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.6.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.5.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.4.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.3.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.2.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.1.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.0.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.3.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.2.0/Google.Cloud.Functions.V1.FailurePolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.1.0/Google.Cloud.Functions.V1.FailurePolicy) \n\n public sealed class FailurePolicy : IMessage\u003cFailurePolicy\u003e, IEquatable\u003cFailurePolicy\u003e, IDeepCloneable\u003cFailurePolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v1 API class FailurePolicy.\n\nDescribes the policy in case of function's execution failure.\nIf empty, then defaults to ignoring failures (i.e. not retrying them). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e FailurePolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[FailurePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.FailurePolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FailurePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.FailurePolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[FailurePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.FailurePolicy), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Functions.V1](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V1.dll\n\nConstructors\n------------\n\n### FailurePolicy()\n\n public FailurePolicy()\n\n### FailurePolicy(FailurePolicy)\n\n public FailurePolicy(FailurePolicy other)\n\nProperties\n----------\n\n### ActionCase\n\n public FailurePolicy.ActionOneofCase ActionCase { get; }\n\n### Retry\n\n public FailurePolicy.Types.Retry Retry { get; set; }\n\nIf specified, then the function will be retried in case of a failure."]]