You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DcevmPatchNotFoundException.java 750B

123456789101112131415161718192021222324252627282930
  1. package com.github.dcevm.installer;
  2. /**
  3. * DCEVM patch does not exists for the version of Java.
  4. */
  5. public class DcevmPatchNotFoundException extends Exception {
  6. // Java version to patch
  7. String javaVersion;
  8. // install path
  9. String installPath;
  10. public DcevmPatchNotFoundException(String javaVersion, String installPath) {
  11. this.javaVersion = javaVersion;
  12. this.installPath = installPath;
  13. }
  14. @Override
  15. public String getMessage() {
  16. return "DCEVM patch is not available for Java version '" + getJavaVersion() + "' at '" + getInstallPath() + "'.";
  17. }
  18. public String getJavaVersion() {
  19. return javaVersion;
  20. }
  21. public String getInstallPath() {
  22. return installPath;
  23. }
  24. }