Exception: AbideDevUtils::Errors::GenericError
- Inherits:
 - 
      StandardError
      
        
- Object
 - StandardError
 - AbideDevUtils::Errors::GenericError
 
 
- Defined in:
 - lib/abide_dev_utils/errors/base.rb
 
Overview
Generic error class. Errors in AbideDevUtil all follow the same format: “<msg> <subject>”. Each error has a default error message relating to error class name. Subjects should always be the thing that failed (file, class, data, etc.).
Direct Known Subclasses
BenchmarkLoadError, CliOptionsConflict, Comply::ComplyLoginFailedError, Comply::WaitOnError, ConfigObjectExistsError, ConfigObjectNotFoundError, ControlIdFrameworkMismatchError, ControlPartsError, FileExtensionIncorrectError, FileNotFoundError, AbideDevUtils::Errors::GCloud::MissingBucketNameError, AbideDevUtils::Errors::GCloud::MissingCredentialsError, AbideDevUtils::Errors::GCloud::MissingProjectError, Jira::CreateEpicError, Jira::CreateIssueError, Jira::CreateSubtaskError, Jira::FindIssueError, MappingDataFrameworkMismatchError, MappingFilesNotFoundError, NewObjectParamNilError, NoMappingDataForControlError, NotHashableError, NotPopulatedStringError, ObjectEmptyError, PathNotDirectoryError, PathNotFileError, Ppt::ClassDeclarationNotFoundError, Ppt::ClassFileNotFoundError, Ppt::CustomObjNotFoundError, Ppt::CustomObjPathKeyError, Ppt::FailedToCreateFileError, Ppt::InvalidClassNameError, Ppt::NotModuleDirError, Ppt::ObjClassPathError, Ppt::TemplateNotFoundError, ProfilePartsError, ResourceDataNotFoundError, ServiceNotFoundError, StrategyInvalidError, UnsupportedXCCDFError, XPathSearchError
Class Attribute Summary collapse
- 
  
    
      .default  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute default.
 
Instance Attribute Summary collapse
- 
  
    
      #subject  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute subject.
 
Instance Method Summary collapse
- 
  
    
      #initialize(subject = nil, msg: self.class.default)  ⇒ GenericError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GenericError.
 
Constructor Details
#initialize(subject = nil, msg: self.class.default) ⇒ GenericError
Returns a new instance of GenericError.
      19 20 21 22 23 24  | 
    
      # File 'lib/abide_dev_utils/errors/base.rb', line 19 def initialize(subject = nil, msg: self.class.default) @msg = msg @subject = subject = subject.nil? ? @msg : "#{@msg} #{@subject}" super() end  | 
  
Class Attribute Details
.default ⇒ Object (readonly)
Returns the value of attribute default.
      14 15 16  | 
    
      # File 'lib/abide_dev_utils/errors/base.rb', line 14 def default @default end  | 
  
Instance Attribute Details
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
      17 18 19  | 
    
      # File 'lib/abide_dev_utils/errors/base.rb', line 17 def subject @subject end  |