| 
      
            Lines 7-12
          use Exception::Class (
      
      
        Link Here
      
     | 
  
        
          | 7 | 
              'Koha::Exceptions::Object' => { | 
          7 | 
              'Koha::Exceptions::Object' => { | 
        
        
          | 8 | 
                  description => 'Something went wrong!',  | 
          8 | 
                  description => 'Something went wrong!',  | 
        
        
          | 9 | 
              },  | 
          9 | 
              },  | 
        
            
               | 
               | 
              10 | 
                  'Koha::Exceptions::Object::DuplicateID' => { | 
            
            
              | 11 | 
                      isa         => 'Koha::Exceptions::Object',  | 
            
            
              | 12 | 
                      description => "Duplicate ID passed",  | 
            
            
              | 13 | 
                      fields      =>  ['duplicate_id']  | 
            
            
              | 14 | 
                  },  | 
            
            
              | 15 | 
                  'Koha::Exceptions::Object::FKConstraint' => { | 
            
            
              | 16 | 
                      isa         => 'Koha::Exceptions::Object',  | 
            
            
              | 17 | 
                      description => "Foreign key constraint broken",  | 
            
            
              | 18 | 
                      fields      =>  ['broken_fk']  | 
            
            
              | 19 | 
                  },  | 
            
        
          | 10 | 
              'Koha::Exceptions::Object::MethodNotFound' => { | 
          20 | 
              'Koha::Exceptions::Object::MethodNotFound' => { | 
        
        
          | 11 | 
                  isa => 'Koha::Exceptions::Object',  | 
          21 | 
                  isa => 'Koha::Exceptions::Object',  | 
        
        
          | 12 | 
                  description => "Invalid method",  | 
          22 | 
                  description => "Invalid method",  |