class_docstr: Superclass for JSON-RPC errors which occur while processing valid requests.
class_docstr_tok: ["Superclass","for","JSON-RPC","errors","which","occur","while","processing","valid","requests","."]
code: def __init__(self, message=None, data=None, client_context=None):
      if self.__class__ == ServerError:
          assert (
              message is not None
          ), "Plain ServerError must have message="
      else:
          assert (
              message is None
          ), f"ServerError subclasses must not supply message=; got {message!r}"
          message = self.__class__.__name__
  
      super(ServerError, self).__init__(
          ErrorCode.SERVER_ERROR, message, data
      )
      self.client_context = client_context
  
imports: import abc
  import argparse
  import base64
  import collections
  import enum
  import io
  import json
  import logging
  import os
  import pathlib
  import re
  import select
  import sys
  import time
  import traceback
  import typing
label_desc: Use image node_id 2 to create a new ServerError object from inherited base classes: JSONRPCError with example: obj = ServerError(message, data, client_context)