Class: HumanError::KnowledgebaseIdDirectory

Inherits:
Object
  • Object
show all
Defined in:
lib/human_error/knowledgebase_id_directory.rb

Class Method Summary collapse

Class Method Details

.directoryObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/human_error/knowledgebase_id_directory.rb', line 7

def self.directory
  {
    'HumanError::Errors::InvalidTokenError'              => '1234567890',
    'HumanError::Errors::InvalidUsernameOrPasswordError' => '1234567890',
    'HumanError::Errors::ResourceNotFoundError'          => '1234567890',
    'HumanError::Errors::ResourcePersistenceError'       => '1234567890',
    'Apill::Errors::InvalidApiRequestError'              => '1234567890',
    'HumanError::Errors::DuplicateAuthenticationError'   => '1234567890',
    'HumanError::Errors::AssociationError'               => '1234567890',
    'Apill::Errors::InvalidSubdomainError'               => '1234567890',
  }
end

.lookup(error_class) ⇒ Object



3
4
5
# File 'lib/human_error/knowledgebase_id_directory.rb', line 3

def self.lookup(error_class)
  directory[error_class]
end