This commit is contained in:
parent
d417d1e581
commit
487f063cb0
|
@ -10,9 +10,9 @@ public class DynamicTypeConversionException extends RuntimeException {
|
||||||
private final String actual;
|
private final String actual;
|
||||||
|
|
||||||
public DynamicTypeConversionException(String target, Dynamic<?> dynamic) {
|
public DynamicTypeConversionException(String target, Dynamic<?> dynamic) {
|
||||||
super(MESSAGE1 + dynamic.getClass().getSimpleName() + MESSAGE2 + target);
|
super(MESSAGE1 + (dynamic == null ? "null" : dynamic.getClass().getSimpleName()) + MESSAGE2 + target);
|
||||||
this.target = target;
|
this.target = target;
|
||||||
this.actual = dynamic.getClass().getSimpleName();
|
this.actual = dynamic == null ? "null" : dynamic.getClass().getSimpleName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public LocationalException locational(CodeLocation location) {
|
public LocationalException locational(CodeLocation location) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user