| Lines 9-14
          use Exception::Class (
      
      
        Link Here | 
        
          | 9 |         description => 'Something went wrong!', | 9 |         description => 'Something went wrong!', | 
        
          | 10 |     }, | 10 |     }, | 
        
          | 11 |  | 11 |  | 
            
              |  |  | 12 |     'Koha::Exceptions::BadParameter' => { | 
            
              | 13 |         isa => 'Koha::Exceptions::Exception', | 
            
              | 14 |         description => 'Bad parameter was given', | 
            
              | 15 |         fields => ["parameter"], | 
            
              | 16 |     }, | 
        
          | 12 |     'Koha::Exceptions::DuplicateObject' => { | 17 |     'Koha::Exceptions::DuplicateObject' => { | 
        
          | 13 |         isa => 'Koha::Exceptions::Exception', | 18 |         isa => 'Koha::Exceptions::Exception', | 
        
          | 14 |         description => 'Same object already exists', | 19 |         description => 'Same object already exists', | 
  
    | Lines 21-26
          use Exception::Class (
      
      
        Link Here | 
        
          | 21 |         isa => 'Koha::Exceptions::Exception', | 26 |         isa => 'Koha::Exceptions::Exception', | 
        
          | 22 |         description => 'A required parameter is missing' | 27 |         description => 'A required parameter is missing' | 
        
          | 23 |     }, | 28 |     }, | 
            
              |  |  | 29 |     'Koha::Exceptions::UnderMaintenance' => { | 
            
              | 30 |         isa => 'Koha::Exceptions::Exception', | 
            
              | 31 |         description => 'Koha is under maintenance.' | 
            
              | 32 |     }, | 
        
          | 24 |     # Virtualshelves exceptions | 33 |     # Virtualshelves exceptions | 
        
          | 25 |     'Koha::Exceptions::Virtualshelves::DuplicateObject' => { | 34 |     'Koha::Exceptions::Virtualshelves::DuplicateObject' => { | 
        
          | 26 |         isa => 'Koha::Exceptions::DuplicateObject', | 35 |         isa => 'Koha::Exceptions::DuplicateObject', |