Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -174,7 +174,7 @@ public class Jaxb2CollectionHttpMessageConverter<T extends Collection>
|
||||
}
|
||||
catch (UnmarshalException ex) {
|
||||
throw new HttpMessageNotReadableException(
|
||||
"Could not unmarshal to [" + elementClass + "]: " + ex.getMessage(), ex, inputMessage);
|
||||
"Could not unmarshal to [" + elementClass + "]: " + ex, ex, inputMessage);
|
||||
}
|
||||
catch (JAXBException ex) {
|
||||
throw new HttpMessageConversionException("Invalid JAXB setup: " + ex.getMessage(), ex);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -229,7 +229,7 @@ public abstract class GenericFilterBean implements Filter, BeanNameAware, Enviro
|
||||
}
|
||||
catch (BeansException ex) {
|
||||
String msg = "Failed to set bean properties on filter '" +
|
||||
filterConfig.getFilterName() + "': " + ex.getMessage();
|
||||
filterConfig.getFilterName() + "': " + ex.getMessage();
|
||||
logger.error(msg, ex);
|
||||
throw new NestedServletException(msg, ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user