Add exception MDImporterDuplicateInvno

This commit is contained in:
Joshua Ramon Enslin 2023-07-20 00:58:22 +02:00
parent ded07b6597
commit 1aadb77bbf
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,29 @@
<?PHP
/**
* This exception is specific to the importer. It is to be returned if an object
* is to be imported while another of the same inventory number exists already -
* and where the import is set to only import new objects.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
/**
* This exception is specific to the importer. It is to be returned if an object
* is to be imported while another of the same inventory number exists already -
* and where the import is set to only import new objects.
*/
final class MDImporterDuplicateInvno extends MDgenericInvalidInputsException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'This object already exists';
}
}