Skip to content

Commit

Permalink
Backporting for dotnet 7
Browse files Browse the repository at this point in the history
  • Loading branch information
umbracotrd committed Mar 11, 2024
1 parent e183c05 commit 29c6707
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
using System;
using System.Globalization;
using System.Text;

namespace Umbraco.Commerce.PaymentProviders.Opayo.Api
{
[Serializable]
public class UnknownEndpointTypeException : Exception
{
private static readonly CompositeFormat _messageTemplate = CompositeFormat.Parse("Unknown endpoint type '{0}'");
private const string MessageTemplate = "Unknown endpoint type '{0}'";

public UnknownEndpointTypeException()
: base("Unknown endpoint type")
{
}

public UnknownEndpointTypeException(string endpointType)
: base(string.Format(CultureInfo.InvariantCulture, _messageTemplate, endpointType))
: base(string.Format(CultureInfo.InvariantCulture, MessageTemplate, endpointType))
{
}

Expand Down

0 comments on commit 29c6707

Please sign in to comment.