Sha256: d8f6c32536fa62756286110e8a57e2ceb9f7de439c2b3eb9550e98f3a5231e83
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true module MinatoErrorHandler class NetworkError < MinatoErrorHandler::MinatoError def initialize(details: {}, caused_by: nil, status_code: nil, request_body: {}) @request_body = request_body super(details: details, caused_by: caused_by, status_code: status_code) end attr_reader :request_body def message "A network error has occurred!" end def serialized_hash super.merge({ request_body: request_body }) end end end
Version data entries
3 entries across 3 versions & 1 rubygems