Fixed compilation errors.

This commit is contained in:
Juan Carlos Luciani
2007-03-19 17:57:15 +00:00
parent bbb8b25e49
commit 3836edc9d7
8 changed files with 52 additions and 17 deletions

View File

@@ -44,6 +44,7 @@ public class ShutdownWindowsService
final static int ERROR_MISSING_INSTALL_DIR_PARAM = -23;
final static int ERROR_MISSING_PROPERTY_FILE_PARAM = -24;
final static int ERROR_BAD_PROPERTY_PARAM = -29;
final static int ERROR_EXCEPTION = -30;
final static String INSTALL_DIR_PROPERTY = "ATS_INSTALL_DIR";
final static String PROPERTY_FILE_PARAM = "propertyfile=";
@@ -91,9 +92,9 @@ public class ShutdownWindowsService
}
}
catch (IOException e)
catch (Exception e)
{
rc = ERROR_IO_EXCEPTION;
rc = ERROR_EXCEPTION;
}
finally
{
@@ -372,6 +373,9 @@ public class ShutdownWindowsService
case ERROR_BAD_PROPERTY_PARAM:
sMessage = "Bad property parameter";
break;
case ERROR_EXCEPTION:
sMessage = "Exception";
break;
default:
sMessage = "Unknown error: " + err;
break;