Sha256: 507a501c185f37cbe0ad55e5a420ad9ef0e2bd93a3174bcbee09dd13efd6d8d3

Contents?: true

Size: 718 Bytes

Versions: 98

Compression:

Stored size: 718 Bytes

Contents

module Souls
  class CLIException < StandardError
    attr_reader :message

    def initialize(message)
      super
      @message = message
    end
  end

  class PSQLException < CLIException
    attr_reader :message

    def initialize
      message = "It looks like there was a problem with the DB. Make sure PSQL is running with 'souls docker psql'"
      super(message)
      @message = message
    end
  end

  class GcloudException < CLIException
    attr_reader :message

    def initialize
      message = "You either haven't created or don't have access to a GCP project. " \
      "Please create a GCP project with the same name as this app."
      super(message)
      @message = message
    end
  end
end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
souls-1.17.3 lib/souls/cli/cli_exception.rb
souls-1.17.2 lib/souls/cli/cli_exception.rb
souls-1.17.1 lib/souls/cli/cli_exception.rb
souls-1.17.0 lib/souls/cli/cli_exception.rb
souls-1.16.4 lib/souls/cli/cli_exception.rb
souls-1.16.3 lib/souls/cli/cli_exception.rb
souls-1.16.2 lib/souls/cli/cli_exception.rb
souls-1.16.1 lib/souls/cli/cli_exception.rb
souls-1.16.0 lib/souls/cli/cli_exception.rb
souls-1.15.5 lib/souls/cli/cli_exception.rb
souls-1.15.4 lib/souls/cli/cli_exception.rb
souls-1.15.3 lib/souls/cli/cli_exception.rb
souls-1.15.2 lib/souls/cli/cli_exception.rb
souls-1.15.1 lib/souls/cli/cli_exception.rb
souls-1.15.0 lib/souls/cli/cli_exception.rb
souls-1.14.3 lib/souls/cli/cli_exception.rb
souls-1.14.2 lib/souls/cli/cli_exception.rb
souls-1.14.1 lib/souls/cli/cli_exception.rb
souls-1.14.0 lib/souls/cli/cli_exception.rb
souls-1.13.8 lib/souls/cli/cli_exception.rb