Module: Exceptional::Integration
- Defined in:
- lib/exceptional/integration/tester.rb
Defined Under Namespace
Classes: ExceptionalTestException
Class Method Summary collapse
Class Method Details
.test ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/exceptional/integration/tester.rb', line 6 def self.test begin raise ExceptionalTestException.new, 'Test exception' rescue Exception => e unless Exceptional::Remote.error(Exceptional::ExceptionData.new(e, "Test Exception")) puts "Problem sending exception to Exceptional. Check your API key." else puts "Exception sent successfully." end end end |