📄 exceptionhandlingtypehelper.cs
字号:
using System;
namespace NetBpm.Workflow.Delegation
{
public enum ExceptionHandlingType
{
ROLLBACK = 1,
LOG = 2,
IGNORE = 3,
}
public class ExceptionHandlingTypeHelper
{
public static ExceptionHandlingType FromText(String text)
{
if (text.Equals("rollback"))
{
return ExceptionHandlingType.ROLLBACK;
}
else if (text.Equals("log"))
{
return ExceptionHandlingType.LOG;
}
else if (text.Equals("ignore"))
{
return ExceptionHandlingType.IGNORE;
}
return 0;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -