You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
application=null;// unit tests don't need it anyway.
31
+
_logger.Error(exception,$"Unexpected COM exception while acquiring the host application object for application {applicationName} via COM reflection.");
32
+
application=null;// We currently really only use the name anyway.
32
33
}
33
34
catch(InvalidCastExceptionexception)
34
35
{
35
36
//TODO: Find out why this ever happens.
36
-
_logger.Error(exception,$"Unable to cast the host Application {applicationName} to its PIA type.");
37
+
_logger.Error(exception,$"Unable to cast the host application object for application {applicationName} acquired via COM reflection to its PIA type.");
38
+
application=null;//We currently really only use the name anyway.
39
+
}
40
+
catch(Exceptionexception)
41
+
{
42
+
//note: We catch all exceptions because we currently really do not need application object and there can be exceptions for unexpected system setups.
43
+
_logger.Error(exception,$"Unexpected exception while acquiring the host application object for application {applicationName} from a document module.");
37
44
application=null;//We currently really only use the name anyway.
application=null;// unit tests don't need it anyway.
69
+
_logger.Error(exception,$"Unexpected COM exception while acquiring the host application object for application {applicationName} from a document module.");
70
+
application=null;// We currently really only use the name anyway.
61
71
}
62
72
catch(InvalidCastExceptionexception)
63
73
{
64
-
_logger.Error(exception,$"Unable to cast the host Application {applicationName} to its PIA type.");
74
+
_logger.Error(exception,$"Unable to cast the host application object for application {applicationName} acquiered from a document module to its PIA type.");
75
+
application=null;//We currently really only use the name anyway.
76
+
}
77
+
catch(Exceptionexception)
78
+
{
79
+
//note: We catch all exceptions because we currently really do not need application object and there can be exceptions for unexpected system setups.
80
+
_logger.Error(exception,$"Unexpected exception while acquiring the host application object for application {applicationName} from a document module.");
65
81
application=null;//We currently really only use the name anyway.
0 commit comments