public OpenCbsRoleDeleteException(OpenCbsRoleDeleteExceptionsEnum exceptionCode, string method) { _code = _FindException(exceptionCode); AdditionalOptions = new List <string> { method }; }
private string _FindException(OpenCbsRoleDeleteExceptionsEnum exceptionId) { string returned = String.Empty; switch (exceptionId) { case OpenCbsRoleDeleteExceptionsEnum.RoleIsNull: returned = "RoleIsNull.Text"; break; case OpenCbsRoleDeleteExceptionsEnum.RoleHasUsers: returned = "RoleHasUsers.Text"; break; case OpenCbsRoleDeleteExceptionsEnum.ActionProhibited: returned = "ActionProhibitedForUser.Text"; break; } return returned; }
private string _FindException(OpenCbsRoleDeleteExceptionsEnum exceptionId) { string returned = String.Empty; switch (exceptionId) { case OpenCbsRoleDeleteExceptionsEnum.RoleIsNull: returned = "RoleIsNull.Text"; break; case OpenCbsRoleDeleteExceptionsEnum.RoleHasUsers: returned = "RoleHasUsers.Text"; break; case OpenCbsRoleDeleteExceptionsEnum.ActionProhibited: returned = "ActionProhibitedForUser.Text"; break; } return(returned); }
public OpenCbsRoleDeleteException(OpenCbsRoleDeleteExceptionsEnum exceptionCode, string method) { _code = _FindException(exceptionCode); AdditionalOptions = new List<string> {method}; }
public OpenCbsRoleDeleteException(OpenCbsRoleDeleteExceptionsEnum exceptionCode) { _code = _FindException(exceptionCode); }