Exception: BosClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- BosClient::Error
- Defined in:
- lib/bos_client/error.rb
Class Method Summary collapse
Class Method Details
.bos_error(name, message) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/bos_client/error.rb', line 6 def bos_error name, unless const_defined?(name) BosClient::Error.const_set(name.to_sym, Class.new(BosClient::Error)).new() else eval "BosClient::Error::#{name}.new \"#{message}\"" end end |
.const_missing(name) ⇒ Object
14 15 16 |
# File 'lib/bos_client/error.rb', line 14 def const_missing(name) BosClient::Error.const_set(name.to_sym,Class.new(BosClient::Error)) end |