Sha256: b032a7f67007fd5d16f3c005329882e187ce746d401714ea8eb16982a5f03457

Contents?: true

Size: 623 Bytes

Versions: 2

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true
# Defines some errors to identify Exceptions within this gem
module FinAppsCore # :nodoc:
  # Base error class.
  class Error < StandardError; end
  # Raised for existing but invalid arguments.
  class InvalidArgumentsError < Error; end
  # Raised whenever a required argument is missing.
  class MissingArgumentsError < Error; end

  # Raised whenever there is a session timeout at the API.
  class ApiSessionTimeoutError < Error; end

  %i(InvalidArgumentsError MissingArgumentsError ApiSessionTimeoutError).each do |const|
    Error.const_set(const, FinAppsCore.const_get(const))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finapps_core-2.0.3 lib/finapps_core/error.rb
finapps_core-2.0.2 lib/finapps_core/error.rb