프로젝트

일반

사용자정보

개정판 ce5ca212

IDce5ca21265835b1c8538b49785c1ba8c4c9edcc9
상위 d20c56f1
하위 5bcb1a4f

김연진이(가) 5년 이상 전에 추가함

issue #1048 : 화면/메뉴/툴바 개발 - Exception Error Message 오타 수정

Change-Id: Ief2cfe7f308281ec82234bd4e8f94902615d95bf

차이점 보기:

HYTOS/HYTOS/AppDocData.py
158 158
                    symbolCategoryList.append((row[0])) 
159 159
            except Exception as ex:
160 160
                from App import App
161
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
161
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
162 162
                App.mainWnd().addMessage.emit(MessageType.Error, message)
163 163

  
164 164
        return symbolCategoryList
......
179 179
                    symbolCategoryList.append((row[0], row[1])) 
180 180
            except Exception as ex:
181 181
                from App import App
182
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
182
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
183 183
                App.mainWnd().addMessage.emit(MessageType.Error, message)
184 184

  
185 185
        return symbolCategoryList
......
209 209
            # Roll back any change if something goes wrong
210 210
            conn.rollback()
211 211

  
212
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
212
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
213 213
            App.mainWnd().addMessage.emit(MessageType.Error, message)
214 214
        finally:
215 215
            # Close the db connection
......
232 232
                    symbolList.append((row[0], row[1], row[2], row[3])) 
233 233
            except Exception as ex:
234 234
                from App import App
235
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
235
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
236 236
                App.mainWnd().addMessage.emit(MessageType.Error, message)
237 237

  
238 238
        return symbolList
......
253 253
                    symbolCategoryList.append((row[0], row[1])) 
254 254
            except Exception as ex:
255 255
                from App import App
256
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
256
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
257 257
                App.mainWnd().addMessage.emit(MessageType.Error, message)
258 258

  
259 259
        return symbolCategoryList
......
305 305
            # Roll back any change if something goes wrong
306 306
            conn.rollback()
307 307

  
308
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
308
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
309 309
            App.mainWnd().addMessage.emit(MessageType.Error, message)
310 310

  
311 311
    '''
......
354 354
                # Roll back any change if something goes wrong
355 355
                conn.rollback()
356 356

  
357
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
357
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
358 358
                App.mainWnd().addMessage.emit(MessageType.Error, message)
359 359

  
360 360
        return res
......
385 385
            # Roll back any change if something goes wrong
386 386
            conn.rollback()
387 387

  
388
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
388
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
389 389
            App.mainWnd().addMessage.emit(MessageType.Error, message)
390 390
        finally:
391 391
            # Close the db connection
......
414 414
                # Roll back any change if something goes wrong
415 415
                conn.rollback()
416 416

  
417
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
417
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
418 418
                App.mainWnd().addMessage.emit(MessageType.Error, message)
419 419
        return res
420 420

  
......
441 441
                # Roll back any change if something goes wrong
442 442
                conn.rollback()
443 443

  
444
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
444
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
445 445
                App.mainWnd().addMessage.emit(MessageType.Error, message)
446 446
        return res
447 447

  
......
480 480
            # Roll back any change if something goes wrong
481 481
            conn.rollback()
482 482

  
483
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
483
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
484 484
            App.mainWnd().addMessage.emit(MessageType.Error, message)
485 485
        finally:
486 486
            # Close the db connection
......
522 522
            # Roll back any change if something goes wrong
523 523
            conn.rollback()
524 524

  
525
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
525
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
526 526
            App.mainWnd().addMessage.emit(MessageType.Error, message)
527 527
        finally:
528 528
            # Close the db connection
......
561 561
            # Roll back any change if something goes wrong
562 562
            conn.rollback()
563 563

  
564
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
564
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
565 565
            App.mainWnd().addMessage.emit(MessageType.Error, message)
566 566
        finally:
567 567
            # Close the db connection
......
597 597
            # Roll back any change if something goes wrong
598 598
            conn.rollback()
599 599

  
600
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
600
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
601 601
            App.mainWnd().addMessage.emit(MessageType.Error, message)
602 602
        finally:
603 603
            # Close the db connection
......
620 620
            from App import App
621 621
            # Roll back any change if something goes wrong
622 622
            conn.rollback()
623
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
623
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
624 624
            App.mainWnd().addMessage.emit(MessageType.Error, message)
625 625
        finally:
626 626
            # Close the db connection
......
646 646
                # Roll back any change if something goes wrong
647 647
                conn.rollback()
648 648

  
649
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
649
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
650 650
                App.mainWnd().addMessage.emit(MessageType.Error, message)
651 651
    
652 652
    def deleteAppConfigs(self, section, key=None):
......
678 678
            # Roll back any change if something goes wrong
679 679
            conn.rollback()
680 680

  
681
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
681
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
682 682
            App.mainWnd().addMessage.emit(MessageType.Error, message)
683 683
        finally:
684 684
            # Close the db connection
......
716 716
            except Exception as ex:
717 717
                from App import App
718 718

  
719
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
719
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
720 720
                App.mainWnd().addMessage.emit(MessageType.Error, message)
721 721

  
722 722
        return ret
......
752 752
            except Exception as ex:
753 753
                from App import App
754 754

  
755
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
755
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
756 756
                App.mainWnd().addMessage.emit(MessageType.Error, message)
757 757

  
758 758
        return ret
......
791 791
            # Roll back any change if something goes wrong
792 792
            conn.rollback()
793 793

  
794
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
794
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
795 795
            App.mainWnd().addMessage.emit(MessageType.Error, message)
796 796

  
797 797
        finally:
......
835 835
                # Roll back any change if something goes wrong
836 836
                conn.rollback()
837 837

  
838
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
838
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
839 839
                App.mainWnd().addMessage.emit(MessageType.Error, message)                
840 840

  
841 841
   
......
870 870
                conn.rollback()
871 871
                from App import App
872 872

  
873
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
873
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
874 874
                App.mainWnd().addMessage.emit(MessageType.Error, message)
875 875

  
876 876
        return res
......
907 907
                conn.rollback()
908 908
                from App import App
909 909

  
910
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
910
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
911 911
                App.mainWnd().addMessage.emit(MessageType.Error, message)
912 912

  
913 913
    '''
......
939 939
                conn.rollback()
940 940
                from App import App
941 941

  
942
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
942
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
943 943
                App.mainWnd().addMessage.emit(MessageType.Error, message)
944 944

  
945 945
    '''
......
963 963
            except Exception as ex:
964 964
                from App import App
965 965

  
966
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
966
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
967 967
                App.mainWnd().addMessage.emit(MessageType.Error, message)
968 968

  
969 969
        return SymbolCategoryList
......
1015 1015
            except Exception as ex:
1016 1016
                from App import App
1017 1017

  
1018
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1018
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1019 1019
                App.mainWnd().addMessage.emit(MessageType.Error, message)
1020 1020

  
1021 1021
        return ComponentList
......
1062 1062
            except Exception as ex:
1063 1063
                from App import App
1064 1064

  
1065
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1065
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1066 1066
                App.mainWnd().addMessage.emit(MessageType.Error, message)
1067 1067

  
1068 1068
        return ComponentList
......
1088 1088
            except Exception as ex:
1089 1089
                from App import App
1090 1090

  
1091
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1091
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1092 1092
                App.mainWnd().addMessage.emit(MessageType.Error, message)
1093 1093

  
1094 1094
        return symbolTypeList
......
1109 1109
            except Exception as ex:
1110 1110
                from App import App
1111 1111

  
1112
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1112
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1113 1113
                App.mainWnd().addMessage.emit(MessageType.Error, message)
1114 1114
        finally:
1115 1115
            conn.close()
......
1140 1140
                except Exception as ex:
1141 1141
                    from App import App
1142 1142

  
1143
                    message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1143
                    message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1144 1144
                    App.mainWnd().addMessage.emit(MessageType.Error, message)
1145 1145

  
1146 1146
        return res
......
1166 1166
            except Exception as ex:
1167 1167
                from App import App
1168 1168

  
1169
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1169
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1170 1170
                App.mainWnd().addMessage.emit(MessageType.Error, message)
1171 1171

  
1172 1172
        return category
HYTOS/HYTOS/Calculation.py
81 81
            from App import App
82 82
            from AppDocData import MessageType
83 83
            
84
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
84
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
85 85
            App.mainWnd().addMessage.emit(MessageType.Error, message)
86 86

  
87 87

  
......
423 423
            from App import App
424 424
            from AppDocData import MessageType
425 425
            
426
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
426
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
427 427
            App.mainWnd().addMessage.emit(MessageType.Error, message)
428 428

  
429 429
    def getCurrentUnits(self):
......
437 437
            from App import App
438 438
            from AppDocData import MessageType
439 439
            
440
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
440
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
441 441
            App.mainWnd().addMessage.emit(MessageType.Error, message)
442 442

  
443 443
    def getPreviousUnits(self):
......
453 453
            from App import App
454 454
            from AppDocData import MessageType
455 455
            
456
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
456
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
457 457
            App.mainWnd().addMessage.emit(MessageType.Error, message)
458 458

  
459 459
class Calculation:
......
539 539
            from App import App
540 540
            from AppDocData import MessageType
541 541
            
542
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
542
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
543 543
            App.mainWnd().addMessage.emit(MessageType.Error, message)
544 544

  
545 545
    def getBarometricPressure(self):
......
830 830
            from App import App
831 831
            from AppDocData import MessageType
832 832
            
833
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
833
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
834 834
            App.mainWnd().addMessage.emit(MessageType.Error, message)
835 835

  
836 836
    def vap_discharge_1(self, p2, g, mw, temp, f, z, id, L_eq):
......
907 907
                self.liquid_calc_hagen()
908 908
                
909 909
        except Exception as ex:
910
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
910
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
911 911
            App.mainWnd().addMessage.emit(MessageType.Error, message)      
912 912

  
913 913
    def liquid_calc_darcy(self):
......
1128 1128
        except Exception as ex:
1129 1129
            
1130 1130
            
1131
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1131
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1132 1132
            App.mainWnd().addMessage.emit(MessageType.Error, message)            
1133 1133

  
1134 1134

  
HYTOS/HYTOS/Commands/DefaultCommand.py
190 190
            from App import App 
191 191
            from AppDocData import MessageType
192 192

  
193
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
193
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
194 194
            App.mainWnd().addMessage.emit(MessageType.Error, message)
195 195

  
196 196
    def undo(self):
......
230 230
            from App import App
231 231
            from AppDocData import MessageType
232 232
            
233
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
233
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
234 234
            App.mainWnd().addMessage.emit(MessageType.Error, message)
235 235
            
HYTOS/HYTOS/Commands/HydroCalculationCommand.py
48 48
            from App import App
49 49
            from AppDocData import MessageType
50 50

  
51
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
51
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
52 52
            App.mainWnd().addMessage.emit(MessageType.Error, message)            
53 53

  
54 54
    def make_loop(self, loop):
......
83 83
            from App import App
84 84
            from AppDocData import MessageType
85 85
            
86
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
86
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
87 87
            App.mainWnd().addMessage.emit(MessageType.Error, message)
88 88
        finally:
89 89
            loop.name = 'Loop{}'.format(len(self.loops) + 1)
HYTOS/HYTOS/Commands/SaveWorkCommand.py
47 47
        except Exception as ex:
48 48
            from App import App
49 49

  
50
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
50
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
51 51
            App.mainWnd().addMessage.emit(MessageType.Error, message)
52 52
            
53 53
    @staticmethod
......
99 99
        except Exception as ex:
100 100
            from App import App
101 101

  
102
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
102
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
103 103
            App.mainWnd().addMessage.emit(MessageType.Error, message)
HYTOS/HYTOS/ConfigurationDialog.py
128 128
            from App import App
129 129
            from AppDocData import MessageType
130 130

  
131
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
131
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
132 132
            App.mainWnd().addMessage.emit(MessageType.Error, message)
133 133

  
134 134

  
......
201 201
            from App import App
202 202
            from AppDocData import MessageType
203 203
            
204
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
204
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
205 205
            App.mainWnd().addMessage.emit(MessageType.Error, message)
206 206

  
207 207

  
HYTOS/HYTOS/DisplayColors.py
50 50
            from App import App 
51 51
            from AppDocData import MessageType
52 52

  
53
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
53
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
54 54
            App.mainWnd().addMessage.emit(MessageType.Error, message)
HYTOS/HYTOS/ExceptionHandler.py
28 28
    def handler(self, exctype, value, traceback):
29 29
        """ log exception, file namd and line number """
30 30

  
31
        message = 'error occured({}) in {}:{}'.format(value, traceback.tb_frame.f_code.co_filename, traceback.tb_lineno)
31
        message = 'error occurred({}) in {}:{}'.format(value, traceback.tb_frame.f_code.co_filename, traceback.tb_lineno)
32 32
        self.errorSignal.emit()
33 33
        self.logger.critical('Unhandled exception: {}'.format(message))
HYTOS/HYTOS/FittingsDialog.py
605 605
            from App import App
606 606
            from AppDocData import MessageType
607 607
            
608
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
608
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
609 609
            App.mainWnd().addMessage.emit(MessageType.Error, message)
610 610

  
611 611
    def accept(self):
......
625 625
            from App import App
626 626
            from AppDocData import MessageType
627 627
            
628
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
628
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
629 629
            App.mainWnd().addMessage.emit(MessageType.Error, message)
630 630

  
631 631
        QDialog.accept(self)
HYTOS/HYTOS/HMBTable.py
465 465
            from App import App
466 466
            from AppDocData import MessageType
467 467
            
468
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
468
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
469 469
            App.mainWnd().addMessage.emit(MessageType.Error, message)
470 470
    '''
471 471
        @brief      load hmb data from database
......
533 533
                    # Roll back any change if something goes wrong
534 534
                    conn.rollback()
535 535
                    
536
                    message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
536
                    message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
537 537
                    App.mainWnd().addMessage.emit(MessageType.Error, message)
538 538

  
539 539
        return self._hmbs
......
588 588
                # Roll back any change if something goes wrong
589 589
                conn.rollback()
590 590
                
591
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
591
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
592 592
                App.mainWnd().addMessage.emit(MessageType.Error, message)
593 593

  
594 594
    '''
HYTOS/HYTOS/MainWindow.py
118 118
            self.load_stylesheet_file()
119 119
            self.load_language_file()        
120 120
        except Exception as ex:
121
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
121
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
122 122
            self.addMessage.emit(MessageType.Error, message)
123 123
        
124 124
    def load_stylesheet_file(self):
......
154 154
            else:     
155 155
                self.setWindowTitle(_translate(App.NAME  + "({})".format(version), App.NAME + "({})".format(version)) + ' - {}'.format(drawingName))
156 156
        except Exception as ex:
157
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
157
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
158 158
            self.addMessage.emit(MessageType.Error, message)
159 159

  
160 160
    def clearlogs(self):
161 161
        try:
162 162
            self.listWidgetLogs.clear()
163 163
        except Exception as ex:
164
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
164
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
165 165
            self.addMessage.emit(MessageType.Error, message)
166 166
        finally:
167 167
            logs = self.listWidgetLogs.count()
......
238 238

  
239 239
                self.load_drawing_list()                            
240 240
        except Exception as ex:
241
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
241
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
242 242
            self.addMessage.emit(MessageType.Error, message)
243 243

  
244 244
    def clear_data(self):
......
401 401
            self.treeWidgetDrawingList.resizeColumnToContents(0)
402 402

  
403 403
        except Exception as ex:
404
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
404
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
405 405
            self.addMessage.emit(MessageType.Error, message)
406 406

  
407 407
    def open_selected_drawing(self, item):
......
461 461
                    self.progress.hide()
462 462

  
463 463
        except Exception as ex:
464
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
464
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
465 465
            self.addMessage.emit(MessageType.Error, message)
466 466

  
467 467
    def save_drawing_data(self):
......
498 498
                appDocData.updateDrawing(drawing)
499 499
                
500 500
        except Exception as ex:
501
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
501
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
502 502
            self.addMessage.emit(MessageType.Error, message)
503 503

  
504 504
    '''
......
520 520

  
521 521
            self.listWidgetLogs.insertItem(0, item)
522 522
        except Exception as ex:
523
            print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
523
            print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
524 524
        finally:
525 525
            logs = self.listWidgetLogs.count()
526 526
            if logs:
......
606 606
                self.initTableWidgetHMB()        
607 607

  
608 608
        except Exception as ex:
609
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
609
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
610 610
            self.addMessage.emit(MessageType.Error, message)
611 611

  
612 612
    '''
......
692 692
                    self.progress.setValue(self.progress.maximum())
693 693
                    self.progress.hide()
694 694
        except Exception as ex:
695
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
695
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
696 696
            self.addMessage.emit(MessageType.Error, message)
697 697

  
698 698
    def display_loops(self, loops):        
......
757 757
                    self.reload_units()
758 758

  
759 759
        except Exception as ex:
760
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
760
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
761 761
            self.addMessage.emit(MessageType.Error, message)
762 762

  
763 763

  
......
772 772
            self.reload_units()
773 773
            
774 774
        except Exception as ex:
775
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
775
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
776 776
            self.addMessage.emit(MessageType.Error, message)
777 777

  
778 778

  
......
859 859
            self.tableWidgetHMB.resizeRowsToContents()         
860 860

  
861 861
        except Exception as ex:
862
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
862
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
863 863
            self.addMessage.emit(MessageType.Error, message)
864 864

  
865 865
    def load_data(self, drawing):
......
906 906
            #self.changeViewCheckedState(False)
907 907
            
908 908
        except Exception as ex:
909
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
909
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
910 910
            self.addMessage.emit(MessageType.Error, message)
911 911

  
912 912

  
......
1079 1079
                stream_line.stream_no = stream_no
1080 1080
                drawing.hmbTable.add(components_uid, stream_no)
1081 1081
        except Exception as ex:
1082
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1082
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1083 1083
            self.addMessage.emit(MessageType.Error, message)
1084 1084

  
1085 1085
    def getNextStreamNo(self, drawing):
......
1193 1193
         
1194 1194
            QMainWindow.keyPressEvent(self, event)
1195 1195
        except Exception as ex:
1196
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1196
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1197 1197
            self.addMessage.emit(MessageType.Error, message)
1198 1198
            
1199 1199
    '''
......
1281 1281
                item.setVisible(True)
1282 1282
                
1283 1283
        except Exception as ex:
1284
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1284
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1285 1285
            self.addMessage.emit(MessageType.Error, message)
1286 1286
        finally:
1287 1287
            pass
......
1374 1374
        app._mainWnd.show()
1375 1375
        sys.exit(app.exec_())
1376 1376
    except Exception as ex:
1377
        print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
1377
        print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
1378 1378
    finally:
1379 1379
        pass
HYTOS/HYTOS/OptionsDialog.py
87 87
            from App import App
88 88
            from AppDocData import MessageType
89 89

  
90
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
90
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
91 91
            App.mainWnd().addMessage.emit(MessageType.Error, message)
92 92

  
93 93
        QDialog.accept(self)
HYTOS/HYTOS/QEquipmentDataListDialog.py
75 75
            from App import App
76 76
            from AppDocData import MessageType
77 77
            
78
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
78
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
79 79
            App.mainWnd().addMessage.emit(MessageType.Error, message)
80 80

  
81 81
        QDialog.accept(self)
HYTOS/HYTOS/QInstrumentDataListDialog.py
75 75
            from App import App
76 76
            from AppDocData import MessageType
77 77
            
78
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
78
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
79 79
            App.mainWnd().addMessage.emit(MessageType.Error, message)
80 80

  
81 81
        QDialog.accept(self)
HYTOS/HYTOS/QLineDataListDialog.py
75 75
            from App import App
76 76
            from AppDocData import MessageType
77 77
            
78
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
78
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
79 79
            App.mainWnd().addMessage.emit(MessageType.Error, message)
80 80

  
81 81
        QDialog.accept(self)
HYTOS/HYTOS/QtImageViewer.py
181 181
            from App import App
182 182
            from AppDocData import MessageType
183 183
            
184
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
184
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
185 185
            App.mainWnd().addMessage.emit(MessageType.Error, message)
186 186

  
187 187
    '''
......
209 209
            from App import App
210 210
            from AppDocData import MessageType
211 211
            
212
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
212
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
213 213
            App.mainWnd().addMessage.emit(MessageType.Error, message)
214 214

  
215 215
        return fileName
......
297 297
            from App import App
298 298
            from AppDocData import MessageType
299 299
            
300
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
300
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
301 301
            App.mainWnd().addMessage.emit(MessageType.Error, message)
302 302

  
303 303
        QGraphicsView.mouseMoveEvent(self, event)
......
318 318
            from App import App
319 319
            from AppDocData import MessageType
320 320
            
321
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
321
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
322 322
            App.mainWnd().addMessage.emit(MessageType.Error, message)
323 323

  
324 324
        if event.button() != Qt.RightButton:
......
348 348
            from App import App
349 349
            from AppDocData import MessageType
350 350
            
351
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
351
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
352 352
            App.mainWnd().addMessage.emit(MessageType.Error, message)
353 353

  
354 354
        QGraphicsView.mouseReleaseEvent(self, event)
HYTOS/HYTOS/Shapes/EngineeringAbstractItem.py
261 261
            from App import App 
262 262
            from AppDocData import MessageType
263 263

  
264
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
264
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
265 265
            App.mainWnd().addMessage.emit(MessageType.Error, message)
266 266
        
267 267
        return self.attrs
HYTOS/HYTOS/Shapes/EngineeringConnectorItem.py
479 479
            from App import App 
480 480
            from AppDocData import MessageType
481 481

  
482
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
482
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
483 483
            App.mainWnd().addMessage.emit(MessageType.Error, message)
484 484

  
485 485
    def toSql(self, index):
HYTOS/HYTOS/Shapes/EngineeringGuidelineItem.py
52 52
            from App import App
53 53
            from AppDocData import MessageType
54 54
            
55
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
55
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
56 56
            App.mainWnd().addMessage.emit(MessageType.Error, message)
57 57

  
58 58
    '''
HYTOS/HYTOS/Shapes/EngineeringLineNoTextItem.py
237 237
            from App import App
238 238
            from AppDocData import MessageType
239 239

  
240
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
240
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
241 241
            App.mainWnd().addMessage.emit(MessageType.Error, message)
242 242
        
243 243
        return _attrs
......
290 290
            from App import App 
291 291
            from AppDocData import MessageType
292 292

  
293
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
293
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
294 294
            App.mainWnd().addMessage.emit(MessageType.Error, message)
295 295
        
296 296
        return end_breaks
......
311 311
            from App import App
312 312
            from AppDocData import MessageType
313 313

  
314
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
314
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
315 315
            App.mainWnd().addMessage.emit(MessageType.Error, message)
316 316

  
317 317
        return visited
......
399 399
            from App import App
400 400
            from AppDocData import MessageType
401 401

  
402
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
402
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
403 403
            App.mainWnd().addMessage.emit(MessageType.Error, message)
404 404

  
405 405
        if dataList[0] == '':
HYTOS/HYTOS/Shapes/EngineeringPolylineItem.py
57 57
            from App import App
58 58
            from AppDocData import MessageType
59 59
            
60
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
60
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
61 61
            App.mainWnd().addMessage.emit(MessageType.Error, message)
62 62

  
63 63
    @property
HYTOS/HYTOS/Shapes/EngineeringReservedWordTextItem.py
107 107

  
108 108
        except Exception as ex:
109 109
            from App import App 
110
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
110
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
111 111
            App.mainWnd().addMessage.emit(MessageType.Error, message)
112 112

  
HYTOS/HYTOS/Shapes/EngineeringRunItem.py
149 149
            from App import App
150 150
            from AppDocData import MessageType
151 151
            
152
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
152
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
153 153
            App.mainWnd().addMessage.emit(MessageType.Error, message)
154 154

  
155 155
    '''
......
181 181
            from App import App 
182 182
            from AppDocData import MessageType
183 183

  
184
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
184
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
185 185
            App.mainWnd().addMessage.emit(MessageType.Error, message)
186 186
            return None
187 187

  
HYTOS/HYTOS/Shapes/EngineeringStreamlineItem.py
57 57
            from App import App
58 58
            from AppDocData import MessageType
59 59
            
60
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
60
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
61 61
            App.mainWnd().addMessage.emit(MessageType.Error, message)
62 62

  
63 63
    def __repr__(self):
......
497 497
            from App import App 
498 498
            from AppDocData import MessageType
499 499

  
500
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
500
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
501 501
            App.mainWnd().addMessage.emit(MessageType.Error, message)
502 502

  
503 503
        return item
HYTOS/HYTOS/Shapes/EngineeringTextItem.py
278 278
                    if isDataList:
279 279
                        return item
280 280
                else:
281
                    message = 'error occured({}) in {}:{}'.format('텍스트 생성에 실패했습니다.', sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
281
                    message = 'error occurred({}) in {}:{}'.format('텍스트 생성에 실패했습니다.', sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
282 282
                    self.addMessage.emit(MessageType.Normal, message)
283 283

  
284 284
    '''
......
408 408
            from App import App
409 409
            from AppDocData import MessageType
410 410

  
411
            message = 'error occured({}-{}) in {}:{}'.format(ex, self.text(), sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
411
            message = 'error occurred({}-{}) in {}:{}'.format(ex, self.text(), sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
412 412
            App.mainWnd().addMessage.emit(MessageType.Error, message)
413 413

  
414 414
    '''
......
436 436
            from App import App
437 437
            from AppDocData import MessageType
438 438
            
439
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
439
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
440 440
            App.mainWnd().addMessage.emit(MessageType.Error, message)
441 441

  
442 442
        return visited
HYTOS/HYTOS/Shapes/QEngineeringSizeTextItem.py
65 65

  
66 66
        except Exception as ex:
67 67
            from App import App 
68
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
68
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
69 69
            App.mainWnd().addMessage.emit(MessageType.Error, message)
HYTOS/HYTOS/Shapes/QEngineeringTagNoTextItem.py
64 64

  
65 65
        except Exception as ex:
66 66
            from App import App 
67
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
67
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
68 68
            App.mainWnd().addMessage.emit(MessageType.Error, message)
HYTOS/HYTOS/Shapes/SymbolSvgItem.py
81 81
            from App import App
82 82
            from AppDocData import MessageType
83 83
            
84
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
84
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
85 85
            App.mainWnd().addMessage.emit(MessageType.Error, message)
86 86
        finally:
87 87
            f.close()
......
142 142
            except Exception as ex:
143 143
                from App import App 
144 144

  
145
                message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
145
                message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
146 146
                App.mainWnd().addMessage.emit(MessageType.Error, message)           
147 147

  
148 148
        return self._properties
......
293 293
        except Exception as ex:
294 294
            from App import App 
295 295

  
296
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
296
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
297 297
            App.mainWnd().addMessage.emit(MessageType.Error, message)
298 298

  
299 299
    '''
......
398 398
                            res.append(obj)
399 399
        except Exception as ex:
400 400
            from App import App 
401
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
401
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
402 402
            App.mainWnd().addMessage.emit(MessageType.Error, message)
403 403

  
404 404
        return res
......
487 487
            #    assoc.highlight(flag)
488 488
        except Exception as ex: 
489 489
            from App import App 
490
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
490
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
491 491
            App.mainWnd().addMessage.emit(MessageType.Error, message)
492 492

  
493 493
    '''
......
630 630

  
631 631
        except Exception as ex:
632 632
            from App import App 
633
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
633
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
634 634
            App.mainWnd().addMessage.emit(MessageType.Error, message)
635 635

  
636 636
    '''
......
877 877
                item.buildItem(name, _type, float(angle), float(scale), pt, origin, connPts, dbUid, pointsUids)
878 878
        except Exception as ex:
879 879
            from App import App 
880
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
880
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
881 881
            App.mainWnd().addMessage.emit(MessageType.Error, message)
882 882

  
883 883
        return item
......
1094 1094
            from App import App
1095 1095
            from AppDocData import MessageType
1096 1096

  
1097
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1097
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1098 1098
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1099 1099

  
1100 1100
        self.transfer.onRemoved.emit(self)
HYTOS/HYTOS/StreamDataDialog.py
119 119
            from App import App
120 120
            from AppDocData import MessageType
121 121
            
122
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
122
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
123 123
            App.mainWnd().addMessage.emit(MessageType.Error, message)
124 124

  
125 125
    def initPhaseType(self):
......
294 294
            from App import App
295 295
            from AppDocData import MessageType
296 296
            
297
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
297
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
298 298
            App.mainWnd().addMessage.emit(MessageType.Error, message)
299 299

  
300 300
    def update_HMB(self):
......
348 348
            from App import App
349 349
            from AppDocData import MessageType
350 350
            
351
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
351
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
352 352
            App.mainWnd().addMessage.emit(MessageType.Error, message)
353 353

  
354 354
    def accept(self):
HYTOS/HYTOS/SymbolEditorDialog.py
58 58
        except Exception as ex:
59 59
            from App import App
60 60

  
61
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
61
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
62 62
            print(message)
63 63

  
64 64

  
......
93 93
        except Exception as ex:
94 94
            from App import App
95 95

  
96
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
96
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
97 97
            print(message)
98 98

  
99 99
    '''
......
299 299
        except Exception as ex:
300 300
            from App import App
301 301

  
302
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
302
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
303 303
            App.mainWnd().addMessage.emit(MessageType.Error, message)
304 304
   
305 305
    '''
......
471 471
            os.remove(svgPath)
472 472
        
473 473
    '''
474
        @brief  Called When error occured while saving png and svg files
474
        @brief  Called When error occurred while saving png and svg files
475 475
                Delete png, svg files and record from DB
476 476
        @history    2018.05.03  Jeongwoo    Change Parameters and fileName variable
477 477
    '''
......
702 702
            from App import App
703 703
            from AppDocData import MessageType
704 704

  
705
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
705
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
706 706
            App.mainWnd().addMessage.emit(MessageType.Error, message)
707 707

  
708 708

  
HYTOS/HYTOS/SymbolTreeWidget.py
41 41
        except Exception as ex:
42 42
            from App import App
43 43

  
44
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
44
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
45 45
            App.mainWnd().addMessage.emit(MessageType.Error, message)
46 46

  
47 47
    
......
115 115
        except Exception as ex:
116 116
            from App import App
117 117

  
118
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
118
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
119 119
            App.mainWnd().addMessage.emit(MessageType.Error, message)
120 120

  
121 121
    '''
......
145 145
        except Exception as ex:
146 146
            from App import App
147 147

  
148
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
148
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
149 149
            App.mainWnd().addMessage.emit(MessageType.Error, message)
HYTOS/HYTOS/TableWidgetEx.py
54 54
            from App import App 
55 55
            from AppDocData import MessageType
56 56

  
57
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
57
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
58 58
            App.mainWnd().addMessage.emit(MessageType.Error, message)
59 59

  
60 60
        super().dropEvent(event)
HYTOS/HYTOS/TextItemFactory.py
137 137
        except Exception as ex:
138 138
            from App import App
139 139

  
140
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
140
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
141 141
            App.mainWnd().addMessage.emit(MessageType.Error, message)
142 142

  
143 143
        return item
......
215 215
            from App import App
216 216
            from AppDocData import MessageType
217 217
            
218
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
218
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
219 219
            App.mainWnd().addMessage.emit(MessageType.Error, message)
220 220
            
221 221
    '''
......
258 258
            from App import App
259 259
            from AppDocData import MessageType
260 260
            
261
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
261
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
262 262
            App.mainWnd().addMessage.emit(MessageType.Error, message)
263 263

  
264 264
    '''

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)