Sha256: 5b93d3099114f451e2df9faa506352f8e1521a6d1d35a6cd71587e0151ee47f2
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
module Lingo24 # Custom +Exception+ class for errors returned from the Lingo24 Translation APIs. class Exception < :: StandardError attr_accessor :code # Creates a new +Language+. # # Parameters: # <tt>code</tt> - a string containing the status code of the message. # <tt>msg</tt> - a string containing the exception message. def initialize(code, msg) @code = code @message = msg end # Overrides default +message+ to return the exception's message. def message @message end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lingo24-0.1.0 | lib/lingo24/exception.rb |