Sha256: 18171719fccb393de10d148b5a54597494df8f2747655d10d06f2104e926bfad

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
usps_flags-0.3.5 lib/usps_flags/errors.rb
usps_flags-0.3.4 lib/usps_flags/errors.rb
usps_flags-0.3.3 lib/usps_flags/errors.rb
usps_flags-0.3.2 lib/usps_flags/errors.rb
usps_flags-0.3.1 lib/usps_flags/errors.rb
usps_flags-0.3.0 lib/usps_flags/errors.rb