Sha256: d72f79000ef253c56366d36b293ebf5cd776e61fcc868de8cdbda48f290357f2
Contents?: true
Size: 889 Bytes
Versions: 3
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: false # Custom errors. # # @private module USPSFlags::Errors class PNGGenerationError < StandardError attr_reader :svg def initialize(msg = 'There was an error generating the PNG file.', svg: '') super(msg) @svg = svg end end class PNGConversionError < StandardError def initialize(msg = 'There was an error converting the PNG file.') super(msg) end end class StaticFilesGenerationError < StandardError attr_reader :cause def initialize(msg = 'There was an error generating the static files.', cause: nil) super(msg) @cause = cause end end class ZipGenerationError < StandardError attr_reader :type, :cause def initialize(msg = 'There was an error generating the zip file.', type: nil, cause: nil) super(msg) @type = type @cause = cause end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
usps_flags-0.5.0 | lib/usps_flags/errors.rb |
usps_flags-0.4.1 | lib/usps_flags/errors.rb |
usps_flags-0.4.0 | lib/usps_flags/errors.rb |