Sha256: f53ff9f2cbad2ee211a6794fda5137eee29fbc6603043f4224c39d53fc21c2bd

Contents?: true

Size: 432 Bytes

Versions: 31

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module Uffizzi
  RESPONSE_SERVER_ERROR_HEADER = "Server Error:\n"
  CLI_ERROR_HEADER = "CLI Error:\n"

  class Error < Thor::Error; end

  class ServerResponseError < Thor::Error
    def initialize(message)
      super("#{RESPONSE_SERVER_ERROR_HEADER}#{message}")
    end
  end

  class CliError < Thor::Error
    def initialize(message)
      super("#{CLI_ERROR_HEADER}#{message}")
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
uffizzi-cli-2.4.11 lib/uffizzi/error.rb
uffizzi-cli-2.4.10 lib/uffizzi/error.rb
uffizzi-cli-2.4.9 lib/uffizzi/error.rb
uffizzi-cli-2.4.8 lib/uffizzi/error.rb
uffizzi-cli-2.4.7 lib/uffizzi/error.rb
uffizzi-cli-2.4.6 lib/uffizzi/error.rb
uffizzi-cli-2.4.5 lib/uffizzi/error.rb
uffizzi-cli-2.4.4 lib/uffizzi/error.rb
uffizzi-cli-2.4.3 lib/uffizzi/error.rb
uffizzi-cli-2.4.2 lib/uffizzi/error.rb
uffizzi-cli-2.4.1 lib/uffizzi/error.rb
uffizzi-cli-2.4.0 lib/uffizzi/error.rb
uffizzi-cli-2.3.4 lib/uffizzi/error.rb
uffizzi-cli-2.3.3 lib/uffizzi/error.rb
uffizzi-cli-2.3.2 lib/uffizzi/error.rb
uffizzi-cli-2.3.1 lib/uffizzi/error.rb
uffizzi-cli-2.3.0 lib/uffizzi/error.rb
uffizzi-cli-2.2.2 lib/uffizzi/error.rb
uffizzi-cli-2.2.1 lib/uffizzi/error.rb
uffizzi-cli-2.2.0 lib/uffizzi/error.rb