Sign in

wms / wms_NouYaWmsN5 · Files

Logo

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • wms_NouYaWmsN5
  • SoapCore
  • Extensibility
  • ExceptionTransformer.cs
  • webservice 服务建立
    acecc703
    gy.huang authored
    2019-12-22 16:33:13 +0800  
    Browse Code ยป
ExceptionTransformer.cs 334 Bytes
Edit Raw Blame History Permalink
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);
		}
	}
}