Revision 675
Added by berkley about 23 years ago
MetacatReplication.java | ||
---|---|---|
268 | 268 |
} |
269 | 269 |
catch(Exception e) |
270 | 270 |
{ |
271 |
System.out.println("error in handleServerControlRequest " + |
|
271 |
System.out.println("error in " + |
|
272 |
"MetacatReplication.handleServerControlRequest " + |
|
272 | 273 |
e.getMessage()); |
273 | 274 |
e.printStackTrace(System.out); |
274 | 275 |
} |
... | ... | |
394 | 395 |
} |
395 | 396 |
catch(Exception e) |
396 | 397 |
{ |
397 |
System.out.println("error requesting file lock: " + e.getMessage()); |
|
398 |
System.out.println("error requesting file lock from MetacatReplication." + |
|
399 |
"handleGetLockRequest: " + e.getMessage()); |
|
398 | 400 |
e.printStackTrace(System.out); |
399 | 401 |
} |
400 | 402 |
} |
... | ... | |
430 | 432 |
} |
431 | 433 |
catch (Exception e) |
432 | 434 |
{ |
433 |
System.out.println("error in metacatReplication.handlegetdocumentinforequest: " + |
|
434 |
e.getMessage()); |
|
435 |
System.out.println("error in " + |
|
436 |
"metacatReplication.handlegetdocumentinforequest: " + |
|
437 |
e.getMessage()); |
|
435 | 438 |
} |
436 | 439 |
|
437 | 440 |
} |
... | ... | |
456 | 459 |
} |
457 | 460 |
catch(Exception e) |
458 | 461 |
{ |
459 |
System.out.println("error getting document: " + e.getMessage()); |
|
462 |
System.out.println("error getting document from MetacatReplication." + |
|
463 |
"handlGetDocumentRequest " + e.getMessage()); |
|
460 | 464 |
} |
461 | 465 |
|
462 | 466 |
} |
... | ... | |
562 | 566 |
} |
563 | 567 |
catch(Exception e) |
564 | 568 |
{ |
565 |
System.out.println("error in handleupdaterequest2: " + e.getMessage()); |
|
569 |
System.out.println("error in MetacatReplication.handleupdaterequest: " + |
|
570 |
e.getMessage()); |
|
566 | 571 |
e.printStackTrace(System.out); |
567 | 572 |
} |
568 | 573 |
|
... | ... | |
634 | 639 |
} |
635 | 640 |
catch(Exception ee) |
636 | 641 |
{} |
637 |
System.out.println("error in handleGetCatalogRequest: " + e.getMessage()); |
|
642 |
System.out.println("error in MetacatReplication.handleGetCatalogRequest:"+ |
|
643 |
e.getMessage()); |
|
638 | 644 |
e.printStackTrace(System.out); |
639 | 645 |
} |
640 | 646 |
return null; |
... | ... | |
682 | 688 |
} |
683 | 689 |
catch(Exception e) |
684 | 690 |
{ |
685 |
System.out.println("error in file lock thread: " + e.getMessage()); |
|
691 |
System.out.println("error in file lock thread from MetacatReplication." + |
|
692 |
"run: " + e.getMessage()); |
|
686 | 693 |
} |
687 | 694 |
} |
688 | 695 |
|
... | ... | |
815 | 822 |
} |
816 | 823 |
catch(Exception e) |
817 | 824 |
{ |
818 |
System.out.println("error writing to replication log"); |
|
825 |
System.out.println("error writing to replication log from " + |
|
826 |
"MetacatReplication.replLog: " + e.getMessage()); |
|
819 | 827 |
//e.printStackTrace(System.out); |
820 | 828 |
} |
821 | 829 |
} |
... | ... | |
856 | 864 |
} |
857 | 865 |
catch(Exception e) |
858 | 866 |
{ |
859 |
System.out.println("error in replToServer: " + e.getMessage()); |
|
867 |
System.out.println("error in MetacatReplication.replToServer: " + |
|
868 |
e.getMessage()); |
|
860 | 869 |
} |
861 | 870 |
finally |
862 | 871 |
{ |
Also available in: Unified diff
added precise location information (class.method) to each catch statement so that errors are more easily traced.