Sha256: f6fb38abdd6e82c49395997bdb6ed8ab481cac2691ab8c2e18e730c65046139e
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 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 serializable_attributes(attrs) attrs << :request_body attrs end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minato_error_handler-0.1.2.pre.1 | lib/minato_error_handler/network_error.rb |