Sha256: 864261ad095de9d9830dc5dd6ab134b8eacccf14c378e3040f69f0fbb2fb0194
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
module PipeRpc class Hub::Responder::Request class ErrorResult def initialize(request, error) @request, @error = request, Error.new(error) end def value @error.error end def asynchronous? false end def to_response ErrorResponse.new(id: @request.id, error: { code: @error.code, data: { message: @error.message, backtrace: @error.backtrace, method: @request.method, args: @request.arguments } }) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems