We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6afb3d commit 12a1861Copy full SHA for 12a1861
services-api/src/main/java/io/scalecube/services/api/ServiceMessage.java
@@ -171,9 +171,9 @@ public boolean isError() {
171
* @return error type.
172
*/
173
public int errorType() {
174
- final String errorType = headers.get(ERROR_TYPE);
+ String errorType = headers.get(ERROR_TYPE);
175
if (errorType == null) {
176
- throw new IllegalStateException("Message is not an error");
+ return -1;
177
}
178
try {
179
return Integer.parseInt(errorType);
0 commit comments