Class: Rnotifier::ConfigTest
- Inherits:
-
Object
- Object
- Rnotifier::ConfigTest
- Defined in:
- lib/rnotifier/config_test.rb
Defined Under Namespace
Classes: TestException
Class Method Summary collapse
Class Method Details
.test ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rnotifier/config_test.rb', line 6 def self.test begin raise TestException.new('Test exception') rescue Exception => e if Rnotifier::ExceptionData.new(e, {}).notify puts "Test Exception sent. Login to rnotifier.com and checkout." else puts "Problem sending exception to rnotifier.com. Check your API key or config." end end end |