github.com/carter-ya/go-ethereum@v0.0.0-20230628080049-d2309be3983b/rpc/testdata/internal-error.js (about)

     1  // These tests trigger various 'internal error' conditions.
     2  
     3  --> {"jsonrpc":"2.0","id":1,"method":"test_marshalError","params": []}
     4  <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"json: error calling MarshalText for type *rpc.MarshalErrObj: marshal error"}}
     5  
     6  --> {"jsonrpc":"2.0","id":2,"method":"test_panic","params": []}
     7  <-- {"jsonrpc":"2.0","id":2,"error":{"code":-32603,"message":"method handler crashed"}}