Exception: HawatelPS::HawatelPSException
- Inherits:
-
Exception
- Object
- Exception
- HawatelPS::HawatelPSException
- Defined in:
- lib/hawatel_ps/shared/hawatelps_exception.rb
Instance Method Summary collapse
- #exception_enrichment(args) ⇒ Object private
-
#initialize(args = {:exception => nil, :message => nil}) ⇒ void
constructor
Custom exception.
Constructor Details
#initialize(args = {:exception => nil, :message => nil}) ⇒ void
Custom exception
8 9 10 |
# File 'lib/hawatel_ps/shared/hawatelps_exception.rb', line 8 def initialize(args = {:exception => nil, :message => nil}) super(exception_enrichment(args)) end |
Instance Method Details
#exception_enrichment(args) ⇒ Object (private)
13 14 15 16 17 18 19 |
# File 'lib/hawatel_ps/shared/hawatelps_exception.rb', line 13 def exception_enrichment(args) = '' += args[:message] unless args[:message].nil? += "\nNative exception from '#{args[:exception].class}':\n#{args[:exception].}" unless args[:exception].nil? return end |