Sha256: ce8a6fad26bac1e9b12b121576ffbcd02424cc24b8e9f5063b1822f4a42b6115

Contents?: true

Size: 1.65 KB

Versions: 6

Compression:

Stored size: 1.65 KB

Contents

# Requirements
# ========================================================================

# Deps
# ------------------------------------------------------------------------

require 'nrser/errors/nicer_error'


# Definitions
# ========================================================================

module QB
  # Base class for QB errors.
  class Error < StandardError
    include NRSER::NicerError
  end
  
  
  # State Errors
  # =====================================================================
  # 
  # Raised when something - a role, the file system, etc. - is in a state
  # that we can't deal with.
  # 
  
  # Raised when something is in a bad state and no more specific error
  # subclass applies.
  class StateError < Error; end
  
  # Raised when a version mismatch occurs.
  class VersionError < StateError; end
  
  # Raised when the current Ansible version doesn't satisfy:
  # 
  # 1.  A role as defined in `<role_dir>/meta/main.yml:min_ansible_version`)
  #     
  # 2.  QB itself as defined in {QB::MIN_ANSIBLE_VERSION}
  # 
  class AnsibleVersionError < VersionError; end
  
  # Raised when the current QB version doesn't satisfy a role as defined
  # in `<role_dir>/meta/qb[.yml]:required_qb_version`).
  class QBVersionError < VersionError; end
  
  # Raised when the file system is in a state that doesn't work for what we're
  # trying to do.
  class FSStateError < StateError; end
  
  
  # User Input Errors
  # =====================================================================
  # 
  # Raised when we got bad user input.
  # 
  
  # Raised when we got bad user input and no more specific error applies.
  class UserInputError < Error; end
  
end # module QB

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qb-0.4.5 lib/qb/errors.rb
qb-0.4.4 lib/qb/errors.rb
qb-0.4.3 lib/qb/errors.rb
qb-0.4.2 lib/qb/errors.rb
qb-0.4.1 lib/qb/errors.rb
qb-0.4.0 lib/qb/errors.rb