public OrchardException(LocalizedString message) : base(message.Text) { _localizedMessage = message; }
public OrchardException(LocalizedString message, Exception innerException) : base(message.Text, innerException) { _localizedMessage = message; }
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); }