Sha256: 4c1f489ace4f23ab757a88aa19a1bc84c04b97d602b2284b79ca9851db6140df
Contents?: true
Size: 1.07 KB
Versions: 21
Compression:
Stored size: 1.07 KB
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 # Raised whenever the session is invalid or does not exist at the API. class ApiUnauthenticatedError < Error; end # Raised whenever the request specify an unsupported HTTP method. class UnsupportedHttpMethodError < Error; end # Raised whenever the connection fails. class ConnectionFailedError < Error; end # Raised whenever the user is locked out from sign in. class UserLockoutError < Error; end %i[InvalidArgumentsError MissingArgumentsError ApiSessionTimeoutError UnsupportedHttpMethodError ConnectionFailedError].each do |const| Error.const_set(const, FinAppsCore.const_get(const)) end end
Version data entries
21 entries across 21 versions & 1 rubygems