Blame view

SoapCore/Extensibility/ExceptionTransformer.cs 334 Bytes
gy.huang authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;

namespace SoapCore.Extensibility
{
	public class ExceptionTransformer
	{
		private readonly Func<Exception, string> _transformer;

		public ExceptionTransformer(Func<Exception, string> transformer)
		{
			_transformer = transformer;
		}

		public string Transform(Exception ex)
		{
			return _transformer(ex);
		}
	}
}