error messages
This commit is contained in:
parent
0f687ae98f
commit
a147c29c51
|
@ -59,7 +59,7 @@ public class ResourceValidator {
|
||||||
try {
|
try {
|
||||||
validator.validate(new StreamSource(new StringReader(content)));
|
validator.validate(new StreamSource(new StringReader(content)));
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
throw new InformationServiceException("invalid resource", e);
|
throw new InformationServiceException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ public class ResourceValidator {
|
||||||
try {
|
try {
|
||||||
mapper.readValue(content, clazz);
|
mapper.readValue(content, clazz);
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
throw new InformationServiceException("invalid resource", e);
|
throw new InformationServiceException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue