Exception: SunflowerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sunflower/core.rb

Overview

For backwards compatibility. Deprecated.

We use inheritance shenanigans to keep the usage in “begin … rescue … end” working.

Direct Known Subclasses

Sunflower::Error

Class Method Summary collapse

Class Method Details

.exception(*a) ⇒ Object



603
604
605
606
# File 'lib/sunflower/core.rb', line 603

def exception *a
	warn "warning: toplevel SunflowerError class has been renamed to Sunflower::Error, this alias will be removed in v0.6" if self == SunflowerError
	super
end

.new(*a) ⇒ Object



599
600
601
602
# File 'lib/sunflower/core.rb', line 599

def new *a
	warn "warning: toplevel SunflowerError class has been renamed to Sunflower::Error, this alias will be removed in v0.6" if self == SunflowerError
	super
end