Exception: Foobara::RuntimeError

Inherits:
Error
  • Object
show all
Defined in:
foobara-0.0.110/projects/common/src/runtime_error.rb

Overview

NOTE: annoyingly this will clash with ::RuntimeError if not fully qualified when using

Direct Known Subclasses

Auth::FindUser::UserNotFoundError, Auth::Login::InvalidPasswordError, Auth::Login::NoUserIdEmailOrUsernameGivenError, Auth::Logout::InvalidRefreshTokenError, Auth::RefreshLogin::InvalidRefreshTokenError, Auth::RefreshLogin::RefreshTokenNotOwnedByUser, Auth::ResetPassword::BothPasswordResetTokenAndOldPasswordGivenError, Auth::ResetPassword::IncorrectOldPasswordError, Auth::ResetPassword::InvalidResetPasswordTokenError, Auth::ResetPassword::NoPasswordResetTokenOrOldPasswordGivenError, Auth::ResetPassword::UserNotFoundForResetTokenError, Auth::ResetPassword::UserNotGivenError, Auth::VerifyToken::ExpiredTokenError, Auth::VerifyToken::InactiveTokenError, CommandConnector::CommandConnectorError, CommandConnector::Commands::QueryGitCommitInfo::GitCommitInfoFileNotFoundError, CommandPatternImplementation::Concerns::DomainMappers::ForgotToDependOnDomainMapperError, CommandPatternImplementation::Concerns::DomainMappers::NoDomainMapperFoundError, Entity::NotFoundError, Generators::AutocrudGenerator::GenerateAutocrud::MissingManifestError, Generators::CommandGenerator::GenerateCommand::MissingManifestError, Generators::DomainGenerator::GenerateDomain::MissingManifestError, Generators::DomainMapperGenerator::GenerateDomainMapper::MissingManifestError, Generators::EmptyRubyProjectGenerator::GenerateEmptyRubyProject::MissingManifestError, Generators::OrganizationGenerator::GenerateOrganization::MissingManifestError, Generators::RackConnectorGenerator::GenerateRackConnector::MissingManifestError, Generators::RemoteImportsGenerator::GenerateRemoteImports::MissingManifestError, Generators::ResqueConnectorGenerator::GenerateResqueConnector::MissingManifestError, Generators::TypeGenerator::GenerateType::MissingManifestError, Foobara::RemoteGenerator::GenerateTypescript::MissingManifestError, Foobara::RemoteImports::ImportBase::BadManifestInputsError

Instance Attribute Summary

Attributes inherited from Error

#backtrace_when_initialized, #backtrace_when_raised, #context, #error_key, #is_fatal, #message

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#==, abstract, abstract?, context, #eql?, #fatal?, foobara_manifest, #key, message, path, #prepend_path!, runtime_path, subclass, symbol, to_h, #to_h, types_depended_on

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included

Constructor Details

#initialize(message: nil, symbol: nil, context: {}, path: nil) ⇒ RuntimeError

TODO: why path instead of runtime path?



19
20
21
22
# File 'foobara-0.0.110/projects/common/src/runtime_error.rb', line 19

def initialize(message: nil, symbol: nil, context: {}, path: nil)
  args = { message:, symbol:, context:, path: }.compact
  super(**args.merge(category: self.class.category))
end

Class Method Details

.categoryObject



9
10
11
# File 'foobara-0.0.110/projects/common/src/runtime_error.rb', line 9

def category
  :runtime
end

.fatal?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'foobara-0.0.110/projects/common/src/runtime_error.rb', line 13

def fatal?
  true
end