OpenFeign / feign-annotation-error-decoder

Apache License 2.0
51 stars 9 forks source link

ErrorHandlerMap empty if only define annotation class #27

Open cedillomarcos opened 5 years ago

cedillomarcos commented 5 years ago

If define error handler only a class annotation, the member value errorCodes return a empy collection of error codes and the builder only build the default generic error

public class AnnotationErrorDecoder implements ErrorDecoder { private final Map<String, MethodErrorHandler> errorHandlerMap;

errorhandlermap have a empty map of errros