Sha256: 047c47b8045a38e014b3e871996cb553a89e5abe8861d48760e6313084f62f8f

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

module Clerk
  module Errors
    class Base < StandardError
      attr_reader :status

      def initialize(msg, status:)
        @errors = msg["errors"]
        @status = status
        super(msg.merge("status" => status))
      end
    end

    class Fatal < Base
    end

    class Authentication < Base
    end

    class Configuration < StandardError
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clerk-sdk-ruby-4.0.0.beta3 lib/clerk/errors.rb