Sha256: 5097f116acd05e1e54cf468643e6ae4ea4c51cd95f38332d112c471e99e89dbe
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true module WaCloudApi module Message Error = Struct.new(:message, :type, :code, :fbtrace_id, :error_subcode, :error_data, keyword_init: true) do def handle_error raise WaCloudApi::Error, error_message end private def error_message error_data&.dig(:details) || message end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wa_cloud_api-0.1.1 | lib/wa_cloud_api/message/error.rb |