lib/usps_flags/errors.rb in usps_flags-0.3.7 vs lib/usps_flags/errors.rb in usps_flags-0.3.8
- old
+ new
@@ -6,9 +6,15 @@
def initialize(msg = "There was an error generating the PNG file.", svg: "")
super(msg)
end
end
+ class PNGConversionError < StandardError
+ def initialize(msg = "There was an error converting the PNG file.")
+ super(msg)
+ end
+ end
+
class StaticFilesGenerationError < StandardError
def initialize(msg = "There was an error generating the static files.", cause: nil)
super(msg)
end
end