Sha256: 14296838fafec69d8e8001a13658fb0a103fbd5ed6465111fc372edbdffd4b63

Contents?: true

Size: 347 Bytes

Versions: 12

Compression:

Stored size: 347 Bytes

Contents

# typed: ignore
# frozen_string_literal: true

module EML
  # Error is the base class for more specific EML errors
  class Error < ::StandardError
    extend T::Sig

    attr_reader :message

    sig { params(message: T.nilable(String)).void }
    def initialize(message = nil)
      @message = T.let(message, T.nilable(String))
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eml-3.0.0 lib/eml/error.rb
eml-2.2.0 lib/eml/error.rb
eml-2.1.8 lib/eml/error.rb
eml-2.1.7 lib/eml/error.rb
eml-2.1.6 lib/eml/error.rb
eml-2.1.5 lib/eml/error.rb
eml-2.1.4 lib/eml/error.rb
eml-2.1.3 lib/eml/error.rb
eml-2.1.2 lib/eml/error.rb
eml-2.1.1 lib/eml/error.rb
eml-2.1.0 lib/eml/error.rb
eml-2.0.0 lib/eml/error.rb