Skip to content

Commit 1e37d86

Browse files
author
Robert Fink
authored
SerializeError#message is @Value.Default instead of @Value.Derived (#17)
1 parent a23f88c commit 1e37d86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

errors/src/main/java/com/palantir/remoting/api/errors/SerializableError.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ String getExceptionClass() {
8686
* @deprecated Used by the serialization-mechanism for back-compat only. Do not use.
8787
*/
8888
@Deprecated
89-
@Value.Derived
89+
@Value.Default
9090
@JsonProperty("message")
9191
@SuppressWarnings("checkstyle:designforextension")
9292
// TODO(rfink): Remove once all error producers have switched to errorName.
@@ -115,12 +115,12 @@ public static SerializableError forException(ServiceException exception) {
115115
// TODO(rfink): Remove once all error producers have switched to errorCode/errorName.
116116
public static final class Builder extends ImmutableSerializableError.Builder {
117117
@JsonProperty("exceptionClass")
118-
Builder exceptionClass(String exceptionClass) {
118+
Builder doNotUseExceptionClass(String exceptionClass) {
119119
return errorCode(exceptionClass);
120120
}
121121

122122
@JsonProperty("message")
123-
Builder message(String message) {
123+
Builder doNotUseMessage(String message) {
124124
return errorName(message);
125125
}
126126
}

0 commit comments

Comments
 (0)