Sha256: 3e9b0e026b08298e2a6fa32a971d7c4eccd167c6cb33e3b6d68a9832d895d222
Contents?: true
Size: 523 Bytes
Versions: 4
Compression:
Stored size: 523 Bytes
Contents
module Figo # Base class for all errors transported via the figo Connect API. class Error < RuntimeError # Initialize error object. # # @param error [String] the error code # @param error_description [String] the error description def initialize(error, error_description) @error = error @error_description = error_description end # Convert error object to string. # # @return [String] the error description def to_s return @error_description end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
figo-1.4.2 | lib/helpers/error.rb |
figo-1.4.1 | lib/helpers/error.rb |
figo-1.4.0 | lib/helpers/error.rb |
figo-1.3.3 | lib/helpers/error.rb |