Merge pull request #70 from TouchInstinct/feature/enum_exception_description
description for unknown enum values
This commit is contained in:
commit
e1dfde7b0c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue