do not call fillInStackTrace in exception constructor in happy path
This commit is contained in:
@@ -401,7 +401,8 @@ open class WsConnection(
|
||||
JsonRpcError(
|
||||
RpcResponseError.CODE_INTERNAL_ERROR,
|
||||
"Response not received from WebSocket"
|
||||
)
|
||||
),
|
||||
false
|
||||
)
|
||||
|
||||
val response = Flux.from(rpcReceive.asFlux())
|
||||
|
||||
@@ -19,8 +19,9 @@ import io.emeraldpay.etherjar.rpc.RpcException
|
||||
|
||||
class JsonRpcException(
|
||||
val id: JsonRpcResponse.Id,
|
||||
val error: JsonRpcError
|
||||
) : Exception(error.message) {
|
||||
val error: JsonRpcError,
|
||||
writableStackTrace: Boolean = true
|
||||
) : Exception(error.message, null, true, writableStackTrace) {
|
||||
|
||||
constructor(id: Int, message: String) : this(JsonRpcResponse.NumberId(id), JsonRpcError(-32005, message))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user