# 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