mirror of https://github.com/ppy/osu
Better exception for SearchableListFilterControl's generic type argument not being an enum
This commit is contained in:
parent
239472c451
commit
816caf86ea
|
@ -30,7 +30,7 @@ public abstract class SearchableListFilterControl<T,U> : Container
|
|||
protected SearchableListFilterControl()
|
||||
{
|
||||
if (!typeof(T).IsEnum)
|
||||
throw new InvalidOperationException("BrowseFilterControl only supports enums as the generic type argument");
|
||||
throw new InvalidOperationException("SearchableListFilterControl's sort tabs only support enums as the generic type argument");
|
||||
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
|
|
Loading…
Reference in New Issue