lib/clamp/errors.rb in clamp-0.6.3 vs lib/clamp/errors.rb in clamp-0.6.4
- old
+ new
@@ -24,6 +24,18 @@
super("I need help", command)
end
end
+ # raise to signal error during execution
+ class ExecutionError < RuntimeError
+
+ def initialize(message, command, status = 1)
+ super(message, command)
+ @status = status
+ end
+
+ attr_reader :status
+
+ end
+
end