master
Rossen Stoyanchev 7 years ago
parent 4d962a1793
commit 0d28a1c32b
  1. 8
      spring-core/src/main/java/org/springframework/core/codec/DecodingException.java
  2. 6
      spring-core/src/main/java/org/springframework/core/codec/EncodingException.java

@ -16,13 +16,13 @@
package org.springframework.core.codec;
/**
* Indicates an issue with decoding the input stream with the focus on indicating
* a content issue such as a parse failure. As opposed to a more general I/O
* Indicates an issue with decoding the input stream with a focus on content
* related issues such as a parse failure. As opposed to more general I/O
* errors, illegal state, or a {@link CodecException} such as a configuration
* issue that a {@link Decoder} may choose to raise.
*
* <p>For example in a web application, a server side {@code DecodingException}
* would translate to a response with a 400 (bad input) status while
* <p>For example in server web application, a {@code DecodingException} would
* translate to a response with a 400 (bad input) status while
* {@code CodecException} would translate to 500 (server error) status.
*
* @author Rossen Stoyanchev

@ -17,9 +17,9 @@ package org.springframework.core.codec;
/**
* Indicates an issue with encoding the input Object stream with a focus on
* indicating the Objects cannot be encoded. As opposed to a more general
* {@link CodecException} such as a configuration issue that an {@link Encoder}
* may also choose to raise.
* not being able to encode Objects. As opposed to a more general I/O errors
* or a {@link CodecException} such as a configuration issue that an
* {@link Encoder} may also choose to raise.
*
* @author Rossen Stoyanchev
* @since 5.0

Loading…
Cancel
Save