Improve formatting of IllegalArgumentException message thrown by DefaultExecutionContextSerializer
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
e0f78d1504
commit
2916da30dd
@@ -60,8 +60,8 @@ public class DefaultExecutionContextSerializer implements ExecutionContextSerial
|
||||
Assert.notNull(value, "A null value was found");
|
||||
if (!(value instanceof Serializable)) {
|
||||
throw new IllegalArgumentException(
|
||||
"Value: [ " + value + "must be serializable."
|
||||
+ "Object of class [" + value.getClass().getName()
|
||||
"Value: [" + value + "] must be serializable. "
|
||||
+ "Object of class: [" + value.getClass().getName()
|
||||
+ "] must be an instance of " + Serializable.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user