Sha256: bee8428f4d03e47828629d755d8603ccec148aeba3ccb05b77f0e5d632047f16
Contents?: true
Size: 513 Bytes
Versions: 36
Compression:
Stored size: 513 Bytes
Contents
module Scrivito class ClientError < StandardError attr_reader :http_code, :backend_code def initialize(message, http_code: 412, backend_code: nil) @http_code = http_code @backend_code = backend_code super(message) end def ==(client_error) message == client_error.message && http_code == client_error.http_code && backend_code == client_error.backend_code end def as_json {message: message, backend_code: backend_code} end end end
Version data entries
36 entries across 36 versions & 1 rubygems