Sha256: 95b420614e1ceace0095fb4a823b59368873174215c6808d8cafd675cbf43149

Contents?: true

Size: 972 Bytes

Versions: 4

Compression:

Stored size: 972 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module WhatsappSdk
  module Resource
    module Error
      class MissingValue < WhatsappSdk::Error
        extend T::Sig

        sig { returns(String) }
        attr_reader :field

        sig { returns(String) }
        attr_reader :message

        sig { params(field: String, message: String).void }
        def initialize(field, message)
          @field = field
          @message = message
          super(message)
        end
      end

      class InvalidField < MissingValue; end

      class InvalidInteractiveBody < WhatsappSdk::Error; end

      class InvalidInteractiveActionReplyButton < WhatsappSdk::Error; end

      class InvalidInteractiveActionButton < WhatsappSdk::Error; end

      class InvalidInteractiveActionSection < WhatsappSdk::Error; end

      class InvalidInteractiveActionSectionRow < WhatsappSdk::Error; end

      class InvalidInteractiveFooter < WhatsappSdk::Error; end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whatsapp_sdk-0.9.2 lib/whatsapp_sdk/resource/error.rb
whatsapp_sdk-0.9.1 lib/whatsapp_sdk/resource/error.rb
whatsapp_sdk-0.9.0 lib/whatsapp_sdk/resource/error.rb
whatsapp_sdk-0.8.0 lib/whatsapp_sdk/resource/error.rb