<commit_before>package com.apollographql.apollo.internal.subscription;

import java.util.Map;

import org.jetbrains.annotations.NotNull;

import static com.apollographql.apollo.api.internal.Utils.checkNotNull;
import static java.util.Collections.unmodifiableMap;

@SuppressWarnings("WeakerAccess")
public class ApolloSubscriptionServerException extends ApolloSubscriptionException {
  public final Map<String, Object> errorPayload;

  public ApolloSubscriptionServerException(@NotNull Map<String, Object> errorPayload) {
    super("Subscription failed");
    this.errorPayload = unmodifiableMap(checkNotNull(errorPayload, "errorPayload == null"));
  }
}<commit_msg>Give a hint at errorPayload (#3381)<commit_after>package com.apollographql.apollo.internal.subscription;

import java.util.Map;

import org.jetbrains.annotations.NotNull;

import static com.apollographql.apollo.api.internal.Utils.checkNotNull;
import static java.util.Collections.unmodifiableMap;

@SuppressWarnings("WeakerAccess")
public class ApolloSubscriptionServerException extends ApolloSubscriptionException {
  public final Map<String, Object> errorPayload;

  public ApolloSubscriptionServerException(@NotNull Map<String, Object> errorPayload) {
    super("Subscription failed. Check errorPayload for more details.");
    this.errorPayload = unmodifiableMap(checkNotNull(errorPayload, "errorPayload == null"));
  }
}
{'fraction_non_alphanumeric': 0.09280575539568345, 'fraction_numerical': 0.0028776978417266188, 'mean_word_length': 7.3293413173652695, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '425765', 'n_tokens_mistral': 379, 'n_tokens_neox': 370, 'n_words': 78}