lib/sup/source.rb in sup-0.2 vs lib/sup/source.rb in sup-0.3
- old
+ new
@@ -1,7 +1,12 @@
module Redwood
-class SourceError < StandardError; end
+class SourceError < StandardError
+ def initialize *a
+ raise "don't instantiate me!" if SourceError.is_a?(self.class)
+ super
+ end
+end
class OutOfSyncSourceError < SourceError; end
class FatalSourceError < SourceError; end
class Source
## Implementing a new source should be easy, because Sup only needs