exceptions: Jackson 3 unchecked JacksonException hierarchy, Spring Boot 4.2 error handling, OpenRewrite and sed migration
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
=== CatchIOException.java ===
|
||||
CatchIOException.java:9: error: exception IOException is never thrown in body of corresponding try statement
|
||||
} catch (IOException e) {
|
||||
^
|
||||
1 error
|
||||
|
||||
=== NewException.java ===
|
||||
NewException.java:6: error: constructor DatabindException in class DatabindException cannot be applied to given types;
|
||||
throw new DatabindException("bad data");
|
||||
^
|
||||
required: String
|
||||
found: String
|
||||
reason: DatabindException(String) has protected access in DatabindException
|
||||
NewException.java:10: error: no suitable constructor found for JacksonException(String)
|
||||
throw new JacksonException("bad data");
|
||||
^
|
||||
constructor JacksonException.JacksonException(String) is not applicable
|
||||
(JacksonException(String) has protected access in JacksonException)
|
||||
constructor JacksonException.JacksonException(Throwable) is not applicable
|
||||
(argument mismatch; String cannot be converted to Throwable)
|
||||
2 errors
|
||||
|
||||
=== OldImport.java ===
|
||||
OldImport.java:2: error: cannot find symbol
|
||||
import tools.jackson.core.JsonProcessingException;
|
||||
^
|
||||
symbol: class JsonProcessingException
|
||||
location: package tools.jackson.core
|
||||
OldImport.java:6: error: cannot find symbol
|
||||
Order read(JsonMapper mapper, String json) throws JsonProcessingException {
|
||||
^
|
||||
symbol: class JsonProcessingException
|
||||
location: class OldImport
|
||||
2 errors
|
||||
|
||||
=== OldReference.java ===
|
||||
OldReference.java:5: error: cannot find symbol
|
||||
return e.getPath().get(0).getFieldName();
|
||||
^
|
||||
symbol: method getFieldName()
|
||||
location: class Reference
|
||||
1 error
|
||||
|
||||
=== RelatedMultiCatch.java ===
|
||||
RelatedMultiCatch.java:10: error: Alternatives in a multi-catch statement cannot be related by subclassing
|
||||
} catch (JacksonException | DatabindException e) {
|
||||
^
|
||||
Alternative DatabindException is a subclass of alternative JacksonException
|
||||
1 error
|
||||
|
||||
=== WrongOrder.java ===
|
||||
WrongOrder.java:12: error: exception DatabindException has already been caught
|
||||
} catch (DatabindException e) {
|
||||
^
|
||||
1 error
|
||||
|
||||
Reference in New Issue
Block a user