File: errors.rb

package info (click to toggle)
ruby-aruba 2.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 968 kB
  • sloc: javascript: 6,850; ruby: 4,010; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 1,039 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true

module Aruba
  # Standard error
  class Error < StandardError; end

  # An error because a user of the API did something wrong
  class UserError < StandardError; end

  # Raised on launch error
  class LaunchError < Error; end

  # Raised if one tries to use an unknown configuration option
  class UnknownOptionError < ArgumentError; end

  # Raised if command already died
  class CommandAlreadyStoppedError < Error; end

  # Raised if one tries to access last command started, but no command
  # has been started
  class NoCommandHasBeenStartedError < Error; end

  # Raised if one tries to access last command stopped, but no command
  # has been stopped
  class NoCommandHasBeenStoppedError < Error; end

  # Raised if one looked for a command, but no matching was found
  class CommandNotFoundError < ArgumentError; end

  # Raised if command was already started, otherwise aruba forgets about the
  # previous pid and you've got hidden commands run
  class CommandAlreadyStartedError < Error; end
end