Sha256: e21c1a07dde0e5d337274efd85d284a1699a9b0ace960be472ac2770259b6bf7
Contents?: true
Size: 495 Bytes
Versions: 13
Compression:
Stored size: 495 Bytes
Contents
# typed: strict # frozen_string_literal: true module EML module REST class ForbiddenError < ::EML::RESTError sig do params( message: T.nilable(String), response: T.nilable(EML::Response) ).void end def initialize(message = nil, response = nil) message ||= response&.body&.fetch("message", nil) message ||= "The user is not authorised to perform the action" super(message, response) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems