Exception: Geb::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Geb::Error
- Defined in:
- lib/geb/utilities.rb
Overview
define the main error class
Direct Known Subclasses
Config::ConfigAlreadyExists, Config::ConfigFileNotFound, Config::DestinationDirMissing, Git::FailedValidationError, Git::GitError, Git::InsideGitRepoError, Page::FailedToOutputPage, Page::PageFileNotFound, Page::PageFileReadFailure, Page::PageMissingTemplateDefition, Partial::PartialFileNotFound, Partial::PartialFileReadFailure, Site::Build::FailedToOutputSite, Site::Build::SiteNotLoadedError, Site::Core::DirectoryExistsError, Site::Core::InvalidTemplate, Site::Core::SiteAlreadyValidated, Site::Core::SiteNotFoundError, Site::Core::UnvalidatedSiteAndTemplate, Site::Release::SiteReleasingError, Site::Remote::RemotePathNotConfigured, Site::Remote::RemoteURINotConfigured, Site::Remote::SiteNotReleasedError, Site::Template::InvalidTemplateSpecification, Site::Template::InvalidTemplateURL, Template::TemplateFileNotFound, Template::TemplateFileReadFailure
Instance Method Summary collapse
-
#initialize(custom_error = "", default_message = "") ⇒ Geb::Error
constructor
initialize the error class.
Constructor Details
#initialize(custom_error = "", default_message = "") ⇒ Geb::Error
initialize the error class
22 23 24 25 26 27 28 29 30 |
# File 'lib/geb/utilities.rb', line 22 def initialize(custom_error = "", = "") # set the error message = custom_error.empty? ? : "#{custom_error} #{}" # call the parent class constructor super() end |