Sha256: 62179a83f30f6195a65ad2195c632d055d449ecc2dfe4e7d27c519cdb0a1581b
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
module Autoterm class Error < StandardError; end class ProjectNotFoundError < Error attr_reader :project_name, :filename def initialize(project_name, filename) super "Unable to find project '#{project_name}', tried to load #{filename}" @project_name = project_name @filename = filename end end class ParseError < Error def initialize(project_name, original) super "Unable to parse project file '#{project_name}':\n #{original.class}:#{original.message}" @project_name = project_name end end class ExecutionError < Error def initialize(stderr) super "Error whilst running project:\n #{stderr}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autoterm-0.2.0 | lib/autoterm/errors.rb |