Feature #95

Improve Exception Handling (Dorothy custom error classes)

Added by Vincenzo Piscitelli over 5 years ago.

Status:NewStart date:03/23/2015
Priority:BassaDue date:
Assignee:-% Done:

0%

Category:-Spent time:-
Target version:-

Description

#/lib/dorothy/exception.rb
#Dorothy custom error classes

module Dorothy2 # Exceptions raised by Dorothy2 inherit from Error
class Error < StandardError; end

Exception raised DEM
class SandBoxError < Error; end
Exception raised by pcapr
class PcaprError < Error; end
Exception raised by Analyzer
class AnalyzerError < Error; end
Exception raised by WGui
class WguiError < Error; end
Exception raised by Sandbox
class SandBoxError < Eror; end
end
#Usage

rescue Dorothy2::Error
rescue Dorothy2::PcaprError
rescue Dorothy2::AnalyzerError

Also available in: Atom PDF