예제 #1
0
 internal NotAuthorizedForFieldException(AuthorizableVerb verb, string fieldName)
     : base(verb, "the '" + fieldName + "' field")
 {
 }
예제 #2
0
 protected NotAuthorizedException(AuthorizableVerb verb, string thing)
     : base(ErrorStatus.Forbidden, string.Format("User is not authorised to {0} {1}.", verb.ToString().ToLower(), thing))
 {
 }
예제 #3
0
 internal NotAuthorizedForItemException(AuthorizableVerb verb)
     : base(verb, "this item")
 {
 }