Sha256: b8d3e597de0fa4de01cb2d05a5e53c7e05eb27347655297a83276780b527bcf0

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

# Custom errors.
#
# @private
module USPSFlags::Errors
  class PNGGenerationError < StandardError
    def initialize(msg = "There was an error generating the PNG file.", svg: "")
      super(msg)
    end
  end

  class StaticFilesGenerationError < StandardError
    def initialize(msg = "There was an error generating the static files.", cause: nil)
      super(msg)
    end
  end

  class ZipGenerationError < StandardError
    def initialize(msg = "There was an error generating the zip file.", type: nil, cause: nil)
      super(msg)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
usps_flags-0.3.7 lib/usps_flags/errors.rb
usps_flags-0.3.6 lib/usps_flags/errors.rb