Example #1
0
 public MethodCallDenied(IEnumerable<ValidationFailure> failures)
 {
     var validationFailures = failures as IList<ValidationFailure> ?? failures.ToList();
     Argument.NotNull(validationFailures, "failures");
     _userMessage =  UserMessage.Format(
         string.Join(Environment.NewLine, validationFailures.Select(x => x.ErrorMessage)),
         "SECURITY_FAULT");
 }
Example #2
0
 public LoginSuccessModel(UserMessage message, UserIdentityModel user)
     : base(message)
 {
     if (user == null)
     {
         throw new ArgumentNullException("user");
     }
     User = user;
 }
Example #3
0
 public UserMessageException(UserMessage message)
     : base(message.Message)
 {
     if (message == null)
     {
         throw new ArgumentNullException("message");
     }
     UserMessage = message;
 }
Example #4
0
 public AccessFailure(AccessFailureReason failure)
 {
     _failure = failure;
     _message = failure.ToUserMessage();
 }
Example #5
0
 public SecurityException(UserMessage message)
     : base(message)
 {
 }