Sha256: 64a478584b97265e043e00f420bdac2951b358b2d36aa23fbac89192f954563e
Contents?: true
Size: 523 Bytes
Versions: 3
Compression:
Stored size: 523 Bytes
Contents
module GraphitiErrors module InvalidRequest class ExceptionHandler < GraphitiErrors::ExceptionHandler def initialize(options = {}) unless options.key?(:log) options[:log] = false end super @show_raw_error = log? end def status_code(error) 400 end def error_payload(error) serializer = InvalidRequest::Serializer.new(error.errors) { errors: serializer.rendered_errors, } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems