@@ -1316,7 +1316,7 @@ namespace {
13161316 }
13171317 }
13181318 }
1319- catch (const Exiv2::AnyError & error) {
1319+ catch (const Exiv2::Error & error) {
13201320 std::cerr << filename << " , " << _ (" line" ) << " " << error << " \n " ;
13211321 return false ;
13221322 }
@@ -1337,7 +1337,7 @@ namespace {
13371337 }
13381338 return true ;
13391339 }
1340- catch (const Exiv2::AnyError & error) {
1340+ catch (const Exiv2::Error & error) {
13411341 std::cerr << _ (" -M option" ) << " " << error << " \n " ;
13421342 return false ;
13431343 }
@@ -1385,14 +1385,14 @@ namespace {
13851385 cmdLine += std::string (" " ) + formatArg (__argv[i]) ;
13861386 }
13871387#endif
1388- throw Exiv2::Error (Exiv2::kerErrorMessage, Exiv2::toString (num)
1388+ throw Exiv2::Error (Exiv2::ErrorCode:: kerErrorMessage, Exiv2::toString (num)
13891389 + " : " + _ (" Invalid command line:" ) + cmdLine);
13901390 }
13911391
13921392 std::string cmd (line.substr (cmdStart, cmdEnd-cmdStart));
13931393 CmdId cmdId = commandId (cmd);
13941394 if (cmdId == invalidCmdId) {
1395- throw Exiv2::Error (Exiv2::kerErrorMessage, Exiv2::toString (num)
1395+ throw Exiv2::Error (Exiv2::ErrorCode:: kerErrorMessage, Exiv2::toString (num)
13961396 + " : " + _ (" Invalid command" ) + " `" + cmd + " '" );
13971397 }
13981398
@@ -1406,25 +1406,25 @@ namespace {
14061406 defaultType = Exiv2::IptcDataSets::dataSetType (iptcKey.tag (),
14071407 iptcKey.record ());
14081408 }
1409- catch (const Exiv2::AnyError &) {}
1409+ catch (const Exiv2::Error &) {}
14101410 if (metadataId == invalidMetadataId) {
14111411 try {
14121412 Exiv2::ExifKey exifKey (key);
14131413 metadataId = exif;
14141414 defaultType = exifKey.defaultTypeId ();
14151415 }
1416- catch (const Exiv2::AnyError &) {}
1416+ catch (const Exiv2::Error &) {}
14171417 }
14181418 if (metadataId == invalidMetadataId) {
14191419 try {
14201420 Exiv2::XmpKey xmpKey (key);
14211421 metadataId = xmp;
14221422 defaultType = Exiv2::XmpProperties::propertyType (xmpKey);
14231423 }
1424- catch (const Exiv2::AnyError &) {}
1424+ catch (const Exiv2::Error &) {}
14251425 }
14261426 if (metadataId == invalidMetadataId) {
1427- throw Exiv2::Error (Exiv2::kerErrorMessage, Exiv2::toString (num)
1427+ throw Exiv2::Error (Exiv2::ErrorCode:: kerErrorMessage, Exiv2::toString (num)
14281428 + " : " + _ (" Invalid key" ) + " `" + key + " '" );
14291429 }
14301430 }
@@ -1444,7 +1444,7 @@ namespace {
14441444 if ( cmdId == reg
14451445 && ( keyEnd == std::string::npos
14461446 || valStart == std::string::npos)) {
1447- throw Exiv2::Error (Exiv2::kerErrorMessage, Exiv2::toString (num)
1447+ throw Exiv2::Error (Exiv2::ErrorCode:: kerErrorMessage, Exiv2::toString (num)
14481448 + " : " + _ (" Invalid command line" ) + " " );
14491449 }
14501450
@@ -1456,7 +1456,7 @@ namespace {
14561456 if (tmpType != Exiv2::invalidTypeId) {
14571457 valStart = line.find_first_not_of (delim, typeEnd+1 );
14581458 if (valStart == std::string::npos) {
1459- throw Exiv2::Error (Exiv2::kerErrorMessage, Exiv2::toString (num)
1459+ throw Exiv2::Error (Exiv2::ErrorCode:: kerErrorMessage, Exiv2::toString (num)
14601460 + " : " + _ (" Invalid command line" ) + " " );
14611461 }
14621462 type = tmpType;
@@ -1483,7 +1483,7 @@ namespace {
14831483
14841484 if (cmdId == reg) {
14851485 if (value.empty ()) {
1486- throw Exiv2::Error (Exiv2::kerErrorMessage,
1486+ throw Exiv2::Error (Exiv2::ErrorCode:: kerErrorMessage,
14871487 Exiv2::toString (num) + " : " + _ (" Empty value for key" ) + + " `" + key + " '" );
14881488 }
14891489
0 commit comments