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.8.3 lib/souls/cli/cli_exception.rb
souls-1.8.2 lib/souls/cli/cli_exception.rb
souls-1.8.1 lib/souls/cli/cli_exception.rb
souls-1.8.0 lib/souls/cli/cli_exception.rb
souls-1.7.38 lib/souls/cli/cli_exception.rb
souls-1.7.37 lib/souls/cli/cli_exception.rb
souls-1.7.36 lib/souls/cli/cli_exception.rb
souls-1.7.34 lib/souls/cli/cli_exception.rb
souls-1.7.33 lib/souls/cli/cli_exception.rb
souls-1.7.32 lib/souls/cli/cli_exception.rb
souls-1.7.31 lib/souls/cli/cli_exception.rb
souls-1.7.30 lib/souls/cli/cli_exception.rb
souls-1.7.29 lib/souls/cli/cli_exception.rb
souls-1.7.28 lib/souls/cli/cli_exception.rb
souls-1.7.27 lib/souls/cli/cli_exception.rb
souls-1.7.26 lib/souls/cli/cli_exception.rb
souls-1.7.25 lib/souls/cli/cli_exception.rb
souls-1.7.24 lib/souls/cli/cli_exception.rb