Merge pull request #70 from TouchInstinct/feature/enum_exception_description

description for unknown enum values
This commit is contained in:
Gavriil 2017-07-13 15:51:38 +03:00 committed by GitHub
commit e1dfde7b0c
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