Example #1
0
 public OrchardException(LocalizedString message)
     : base(message.Text) {
     _localizedMessage = message;
 }
Example #2
0
 public OrchardException(LocalizedString message, Exception innerException)
     : base(message.Text, innerException) {
     _localizedMessage = message;
 }
Example #3
0
 public static LocalizedString OrDefault(this string text, LocalizedString defaultValue)
 {
     return String.IsNullOrEmpty(text)
         ? defaultValue
         : new LocalizedString(text);
 }
 public OrchardSecurityException(LocalizedString message, Exception innerException) : base(message, innerException) { }
 public OrchardSecurityException(LocalizedString message) : base(message) { }
 public static LocalizedString TextOrDefault(string text, LocalizedString defaultValue) {
     if (string.IsNullOrEmpty(text))
         return defaultValue;
     return new LocalizedString(text);
 }