/plugins/cvs/cvs-core/src/com/intellij/cvsSupport2/connections/CvsRootException.java

https://bitbucket.org/nbargnesi/idea · Java · 36 lines · 14 code · 4 blank · 18 comment · 2 complexity · 3f6f8218cc279b0cd375d2e9b5c67391 MD5 · raw file

  1. /*
  2. * Copyright 2000-2011 JetBrains s.r.o.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.intellij.cvsSupport2.connections;
  17. import com.intellij.CvsBundle;
  18. import com.intellij.openapi.ui.Messages;
  19. /**
  20. * @author Bas Leijdekkers
  21. */
  22. public class CvsRootException extends RuntimeException {
  23. public CvsRootException(String message) {
  24. super(message);
  25. }
  26. public void show(){
  27. final String message = getMessage();
  28. if (message != null) {
  29. Messages.showErrorDialog(message, CvsBundle.message("error.title.invalid.cvs.root"));
  30. }
  31. }
  32. }