Fixed compilation errors.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user