description for unknown enum values

This commit is contained in:
gorodeckii 2017-07-13 15:50:44 +03:00
parent dc68c8445a
commit 796371648c
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class LoganSquareEnumConverter<T extends Enum & LoganSquareEnum> extends
if (defaultValue != null) {
return defaultValue;
}
throw new ShouldNotHappenException();
throw new ShouldNotHappenException("Enum parsing exception for value: " + string);
}
@Nullable