Sha256: 39aa21f9df8ce32fbb942618676a31987c043be1022191a2301b50ea7b426d81
Contents?: true
Size: 407 Bytes
Versions: 20
Compression:
Stored size: 407 Bytes
Contents
module NulogyGraphqlApi class GraphQLError def initialize(message, backtrace: nil) @message = message @backtrace = backtrace end def render { data: {}, errors: [{ message: @message }.merge(extensions)] } end def extensions if @backtrace { extensions: { backtrace: @backtrace } } else {} end end end end
Version data entries
20 entries across 20 versions & 1 rubygems