]> CyberLeo.Net >> Repos - CDN/status.git/blob - lib/check_exception.rb
Naive parallelization of checks to reduce response time
[CDN/status.git] / lib / check_exception.rb
1 class CheckException < Exception
2   attr_accessor :exception_type
3   attr_accessor :data
4
5   def initialize(exception_type, data)
6     @exception_type = exception_type
7     @data = data
8   end
9
10   def message
11     "#{@exception_type.to_s.gsub(/_/, ' ')}: #{data.inspect}"
12   end
13 end