ApolloWSMessageType: return null when no corresponding value found
Allows clean error handling in handler
package io.vertx.ext.web.handler.graphql.impl;
-import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
/**
@@ -51,8 +50,6 @@ public enum ApolloWSMessageType {
return t;
}
}
-
- throw new IllegalArgumentException("No enum constant for " + type);
+ return null;
}
-
}
