Sha256: ba0ce2818e6af65f9c7cc5f7c2494bf9e51fb29cc82a4554157f6b9495717440
Contents?: true
Size: 362 Bytes
Versions: 11
Compression:
Stored size: 362 Bytes
Contents
#coding: utf-8 module Ns class ResultError < RuntimeError attr_reader :result def initialize(result = nil) raise "Invalid result argument!" unless result.is_a?(Result) super(result.msg) @result = result end def to_s "RusultError: #{@result.status} #{@result.msg}, detail: #{@result.errors.inspect}" end end end
Version data entries
11 entries across 11 versions & 2 rubygems