Sha256: 29a2a520c38077a6eb4966ee5ddb9961bf67c4c9f39ba8cd05e1157bdc06b253
Contents?: true
Size: 407 Bytes
Versions: 13
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true module Grape module Parser module Xml class << self def call(object, _env) ::Grape::Xml.parse(object) rescue ::Grape::Xml::ParseError # handle XML parsing errors via the rescue handlers or provide error message raise Grape::Exceptions::InvalidMessageBody.new('application/xml') end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems